hosting_package_handler_filter_type.inc in Hosting 7.3
Same filename and directory in other branches
Define a views filter for the Package management module.
File
package/includes/views/handlers/hosting_package_handler_filter_type.incView source
<?php
/**
* @file
* Define a views filter for the Package management module.
*/
/**
* Views filter class to filter by package type.
*/
class hosting_package_handler_filter_type extends views_handler_filter_in_operator {
function get_value_options() {
if (!isset($this->value_options)) {
$this->value_title = t('Package Type');
$types = _hosting_package_types();
foreach ($types as $type => $name) {
$options[$type] = $name;
}
$this->value_options = $options;
}
}
}
Classes
Name | Description |
---|---|
hosting_package_handler_filter_type | Views filter class to filter by package type. |