You are here

hosting_package_handler_filter_status.inc in Hosting 7.3

Define a views filter for the Package management module.

File

package/includes/views/handlers/hosting_package_handler_filter_status.inc
View source
<?php

/**
 * @file
 *   Define a views filter for the Package management module.
 */

/**
 * Views filter class to filter by package status.
 */
class hosting_package_handler_filter_status extends views_handler_filter_in_operator {
  function get_value_options() {
    if (!isset($this->value_options)) {
      $this->value_title = t('Package Status');
      $this->value_options = array(
        '1' => 'Enabled',
        '0' => 'Disabled',
      );
    }
  }

}

Classes

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