class hosting_task_handler_filter_type

Filter by task type

Hierarchy

Expanded class hierarchy of hosting_task_handler_filter_type

Members

Contains filters are case sensitive

File

task/includes/views/handlers/hosting_task_handler_filter_type.inc, line 9
Views handler for the Hosting task module.

View source
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') as $type) {
        $tasks = hosting_available_tasks($type);
        if (!empty($tasks)) {
          foreach ($tasks as $identifier => $task) {
            $options[$identifier] = $task['title'];
          }
        }
      }

      $this->value_options = $options;
    }
  }
}