views_handler_filter_vocabulary_vid.inc

Same filename in other branches
  1. 6.x-3.x modules/taxonomy/views_handler_filter_vocabulary_vid.inc

Definition of views_handler_filter_vocabulary_vid.

File

modules/taxonomy/views_handler_filter_vocabulary_vid.inc

View source
<?php


/**
 * @file
 * Definition of views_handler_filter_vocabulary_vid.
 */

/**
 * Filter by vocabulary id.
 *
 * @ingroup views_filter_handlers
 */
class views_handler_filter_vocabulary_vid extends views_handler_filter_in_operator {
    
    /**
     * {@inheritdoc}
     */
    public function get_value_options() {
        if (isset($this->value_options)) {
            return;
        }
        $this->value_options = array();
        $vocabularies = taxonomy_get_vocabularies();
        foreach ($vocabularies as $voc) {
            $this->value_options[$voc->vid] = $voc->name;
        }
    }

}

Classes

Title Deprecated Summary
views_handler_filter_vocabulary_vid Filter by vocabulary id.