You are here

class hosting_task_handler_filter_hosting_task_type in Hosting 6.2

Filter by task type

Hierarchy

Expanded class hierarchy of hosting_task_handler_filter_hosting_task_type

1 string reference to 'hosting_task_handler_filter_hosting_task_type'
hosting_task_views_data in task/hosting_task.views.inc
Implements hook_views_data().

File

task/hosting_task_handler_filter_hosting_task_type.inc, line 6

View source
class hosting_task_handler_filter_hosting_task_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;
    }
  }

}

Members