Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/includes/analyze.inc
16 16
 * Analyze a review and return the results.
17 17
 *
18 18
 * @return
19
 *   An array of analyze results organized into arrays keyed by 'ok',
20
 *   'warning' and 'error'.
19
 *   An array of analyze results organized into arrays keyed by 'ok', 'warning'
20
 *   and 'error'.
21 21
 */
22 22
function views_analyze_view(&$view) {
23 23
  $view->init_display();
......
79 79
 * that may be broken unless the user knows what he or she is doing,
80 80
 * and 'error' for items that are definitely broken are much more useful.
81 81
 *
82
 * @param $messages
82
 * @param string $message
83 83
 *   The message to report.
84
 * @param $type
84
 * @param string $type
85 85
 *   The type of message. This should be "ok", "warning" or "error". Other
86
 *   values can be used but how they are treated by the output routine
87
 *   is undefined.
86
 *   values can be used but how they are treated by the output routine is
87
 *   undefined.
88 88
 */
89 89
function views_ui_analysis($message, $type = 'error') {
90 90
  return array('message' => $message, 'type' => $type);
......
99 99
 */
100 100
function views_ui_views_analyze($view) {
101 101
  $ret = array();
102
  // Check for something other than the default display:
102
  // Check for something other than the default display.
103 103
  if (count($view->display) < 2) {
104 104
    $ret[] = views_ui_analysis(t('This view has only a default display and therefore will not be placed anywhere on your site; perhaps you want to add a page or a block display.'), 'warning');
105 105
  }

Formats disponibles : Unified diff