hosting_package_handler_filter_type.inc

Define a views filter for the Package management module.

Classes

Namesort descending Description
hosting_package_handler_filter_type Views filter class to filter by package type.

File

package/includes/views/handlers/hosting_package_handler_filter_type.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Define a views filter for the Package management module.
  5. */
  6. /**
  7. * Views filter class to filter by package type.
  8. */
  9. class hosting_package_handler_filter_type extends views_handler_filter_in_operator {
  10. function get_value_options() {
  11. if (!isset($this->value_options)) {
  12. $this->value_title = t('Package Type');
  13. $types = _hosting_package_types();
  14. foreach ($types as $type => $name) {
  15. $options[$type] = $name;
  16. }
  17. $this->value_options = $options;
  18. }
  19. }
  20. }