Projet

Général

Profil

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

root / drupal7 / sites / all / modules / views / modules / locale / views_handler_filter_locale_group.inc @ 4003efde

1
<?php
2

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

    
8
/**
9
 * Filter by locale group.
10
 *
11
 * @ingroup views_filter_handlers
12
 */
13
class views_handler_filter_locale_group extends views_handler_filter_in_operator {
14

    
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function get_value_options() {
19
    if (!isset($this->value_options)) {
20
      $this->value_title = t('Group');
21
      $groups = module_invoke_all('locale', 'groups');
22
      // Sort the list.
23
      asort($groups);
24
      $this->value_options = $groups;
25
    }
26
  }
27

    
28
}