You are here

class hosting_task_handler_sort_hosting_task_default in Hosting 6.2

Handle the default hosting task sort order.

Hierarchy

Expanded class hierarchy of hosting_task_handler_sort_hosting_task_default

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

File

task/hosting_task_handler_sort_hosting_task_default.inc, line 6

View source
class hosting_task_handler_sort_hosting_task_default extends views_handler_sort {
  function query() {
    $this->query
      ->add_orderby(NULL, 'FIELD(task_status,"0")', 'DESC', '_' . $this->field);
    $this->query
      ->add_orderby(NULL, 'FIELD(task_status,"-1")', 'DESC', '_' . $this->field);
  }
  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
    $form['order']['#access'] = FALSE;
  }

}

Members