class hosting_task_handler_sort_default

Handle the default hosting task sort order.

Hierarchy

Expanded class hierarchy of hosting_task_handler_sort_default

Members

Contains filters are case sensitive

File

task/includes/views/handlers/hosting_task_handler_sort_default.inc, line 6

View source
class hosting_task_handler_sort_default extends views_handler_sort {
  function query() {
    $this->query->add_orderby(NULL, "FIELD(task_status, 0, -1, '>0')", 'ASC', '_' . $this->field);
    $this->query->add_orderby(NULL, 'executed', 'DESC', '_' . $this->field);
    $this->query->add_orderby(NULL, 'node.created', 'DESC', '_' . $this->field);
  }

  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
    $form['order']['#access'] = FALSE;
  }
}