Projet

Général

Profil

Paste
Télécharger (645 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / handlers / views_handler_area_messages.inc @ 6eb8d15f

1
<?php
2

    
3
/**
4
 * @file
5
 * Contains views_handler_area_messages.
6
 */
7

    
8
/**
9
 * Provides an area for messages.
10
 */
11
class views_handler_area_messages extends views_handler_area {
12

    
13
  /**
14
   * {@inheritdoc}
15
   */
16
  public function option_definition() {
17
    $options = parent::option_definition();
18
    // Set the default to TRUE so it shows on empty pages by default.
19
    $options['empty']['default'] = TRUE;
20
    return $options;
21
  }
22

    
23
  /**
24
   * {@inheritdoc}
25
   */
26
  public function render($empty = FALSE) {
27
    $return = '';
28
    if (!$empty || !empty($this->options['empty'])) {
29
      $return = theme('status_messages');
30
    }
31
    return $return;
32
  }
33

    
34
}