Projet

Général

Profil

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

root / drupal7 / sites / all / modules / views / modules / taxonomy / views_handler_filter_vocabulary_machine_name.inc @ 7547bb19

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
  function get_value_options() {
15
    if (isset($this->value_options)) {
16
      return;
17
    }
18

    
19
    $this->value_options = array();
20
    $vocabularies = taxonomy_get_vocabularies();
21
    foreach ($vocabularies as $voc) {
22
      $this->value_options[$voc->machine_name] = $voc->name;
23
    }
24
  }
25
}