views_handler_filter_aggregator_category_cid.inc

  1. 3.x modules/aggregator/views_handler_filter_aggregator_category_cid.inc
  2. 2.x modules/aggregator/views_handler_filter_aggregator_category_cid.inc

Definition of views_handler_filter_aggregator_category_cid.

File

modules/aggregator/views_handler_filter_aggregator_category_cid.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Definition of views_handler_filter_aggregator_category_cid.
  5. */
  6. /**
  7. * Filter by aggregator category cid
  8. *
  9. * @ingroup views_filter_handlers
  10. */
  11. class views_handler_filter_aggregator_category_cid extends views_handler_filter_in_operator {
  12. function get_value_options() {
  13. if (isset($this->value_options)) {
  14. return;
  15. }
  16. $this->value_options = array();
  17. $result = db_query('SELECT * FROM {aggregator_category} ORDER BY title');
  18. foreach ($result as $category) {
  19. $this->value_options[$category->cid] = $category->title;
  20. }
  21. }
  22. }