summaryrefslogtreecommitdiff
path: root/sites/all/modules/views/modules/aggregator/views_handler_filter_aggregator_category_cid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sites/all/modules/views/modules/aggregator/views_handler_filter_aggregator_category_cid.inc')
-rw-r--r--sites/all/modules/views/modules/aggregator/views_handler_filter_aggregator_category_cid.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/sites/all/modules/views/modules/aggregator/views_handler_filter_aggregator_category_cid.inc b/sites/all/modules/views/modules/aggregator/views_handler_filter_aggregator_category_cid.inc
new file mode 100644
index 000000000..f9931c8f3
--- /dev/null
+++ b/sites/all/modules/views/modules/aggregator/views_handler_filter_aggregator_category_cid.inc
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * @file
+ * Definition of views_handler_filter_aggregator_category_cid.
+ */
+
+/**
+ * Filter by aggregator category cid
+ *
+ * @ingroup views_filter_handlers
+ */
+class views_handler_filter_aggregator_category_cid extends views_handler_filter_in_operator {
+ function get_value_options() {
+ if (isset($this->value_options)) {
+ return;
+ }
+
+ $this->value_options = array();
+
+ $result = db_query('SELECT * FROM {aggregator_category} ORDER BY title');
+ foreach ($result as $category) {
+ $this->value_options[$category->cid] = $category->title;
+ }
+ }
+}