~spreadubuntu/spreadubuntu/devel-drupal6

« back to all changes in this revision

Viewing changes to modules/views/modules/taxonomy/views_handler_filter_vocabulary_vid.inc

  • Committer: ruben
  • Date: 2009-06-08 09:38:49 UTC
  • Revision ID: ruben@captive-20090608093849-s1qtsyctv2vwp1x1
SpreadUbuntu moving to Drupal6. Based on ubuntu-drupal theme and adding our modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
// $Id: views_handler_filter_vocabulary_vid.inc,v 1.2 2008/09/22 18:13:51 merlinofchaos Exp $
 
3
 
 
4
/**
 
5
 * Filter by vocabulary id
 
6
 */
 
7
class views_handler_filter_vocabulary_vid extends views_handler_filter_in_operator {
 
8
  function get_value_options() {
 
9
    if (isset($this->value_options)) {
 
10
      return;
 
11
    }
 
12
 
 
13
    $this->value_options = array();
 
14
    $vocabularies = taxonomy_get_vocabularies();
 
15
    foreach ($vocabularies as $voc) {
 
16
      $this->value_options[$voc->vid] = check_plain($voc->name);
 
17
    }
 
18
  }
 
19
}