<?php
// $Id: views_handler_filter_vocabulary_vid.inc,v 1.2 2008/09/22 18:13:51 merlinofchaos Exp $

/**
 * Filter by vocabulary id
 */
class views_handler_filter_vocabulary_vid extends views_handler_filter_in_operator {
  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] = check_plain($voc->name);
    }
  }
}
