hosting_package_handler_filter_status.inc

Define a views filter for the Package management module.

Classes

Namesort descending Description
hosting_package_handler_filter_status Views filter class to filter by package status.

File

package/includes/views/handlers/hosting_package_handler_filter_status.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 status.
  8. */
  9. class hosting_package_handler_filter_status extends views_handler_filter_in_operator {
  10. function get_value_options() {
  11. if (!isset($this->value_options)) {
  12. $this->value_title = t('Package Status');
  13. $this->value_options = array('1' => 'Enabled', '0' => 'Disabled');
  14. }
  15. }
  16. }