commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / views / modules / system / views_handler_filter_system_type.inc
1 <?php
2
3 /**
4 * @file
5 * Definition of views_handler_filter_system_type.
6 */
7
8 /**
9 * Filter by system type.
10 */
11 class views_handler_filter_system_type extends views_handler_filter_in_operator {
12 function get_value_options() {
13 if (!isset($this->value_options)) {
14 $this->value_title = t('Type');
15 // Enable filtering by type.
16 $types = array();
17 $types = db_query('SELECT DISTINCT(type) FROM {system} ORDER BY type')->fetchAllKeyed(0, 0);
18 $this->value_options = $types;
19 }
20 }
21 }