Projet

Général

Profil

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

root / drupal7 / sites / all / modules / views / modules / taxonomy / views_handler_filter_vocabulary_machine_name.inc @ 4003efde

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of views_handler_filter_vocabulary_machine_name.
6
 */
7

    
8
/**
9
 * Filter by vocabulary machine name.
10
 *
11
 * @ingroup views_filter_handlers
12
 */
13
class views_handler_filter_vocabulary_machine_name extends views_handler_filter_in_operator {
14

    
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function get_value_options() {
19
    if (isset($this->value_options)) {
20
      return;
21
    }
22

    
23
    $this->value_options = array();
24
    $vocabularies = taxonomy_get_vocabularies();
25
    foreach ($vocabularies as $voc) {
26
      $this->value_options[$voc->machine_name] = $voc->name;
27
    }
28
  }
29

    
30
}