hosting_task_handler_filter_type.inc in Hosting 7.4
Same filename and directory in other branches
Views handler for the Hosting task module.
File
task/includes/views/handlers/hosting_task_handler_filter_type.incView source
<?php
/**
* @file Views handler for the Hosting task module.
*/
/**
* Filter by task type
*/
class hosting_task_handler_filter_type extends views_handler_filter_in_operator {
function get_value_options() {
if (!isset($this->value_options)) {
$this->value_title = t('Task Type');
$options = array();
foreach (array(
'site',
'platform',
'server',
) as $type) {
$tasks = hosting_available_tasks($type);
if (!empty($tasks)) {
foreach ($tasks as $identifier => $task) {
$options[$identifier] = $task['title'];
}
}
}
$this->value_options = $options;
}
}
}
Classes
Name![]() |
Description |
---|---|
hosting_task_handler_filter_type | Filter by task type |