commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / views / modules / aggregator / views_handler_filter_aggregator_category_cid.inc
1 <?php
2
3 /**
4 * @file
5 * Definition of views_handler_filter_aggregator_category_cid.
6 */
7
8 /**
9 * Filter by aggregator category cid
10 *
11 * @ingroup views_filter_handlers
12 */
13 class views_handler_filter_aggregator_category_cid 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
21 $result = db_query('SELECT * FROM {aggregator_category} ORDER BY title');
22 foreach ($result as $category) {
23 $this->value_options[$category->cid] = $category->title;
24 }
25 }
26 }