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
|
}
|