public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); // allow + for or, , for and $form['break_phrase'] = array('#type' => 'checkbox', '#title' => t('Allow multiple values'), '#description' => t('If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'), '#default_value' => !empty($this->options['break_phrase']), '#fieldset' => 'more'); $form['not'] = array('#type' => 'checkbox', '#title' => t('Exclude'), '#description' => t('If selected, the numbers entered for the filter will be excluded rather than limiting the view.'), '#default_value' => !empty($this->options['not']), '#fieldset' => 'more'); }
/** * Override defaultActions() to remove actions that don't * make sense for a null argument. */ protected function defaultActions($which = NULL) { if ($which) { if (in_array($which, array('ignore', 'not found', 'empty', 'default'))) { return parent::defaultActions($which); } return; } $actions = parent::defaultActions(); unset($actions['summary asc']); unset($actions['summary desc']); return $actions; }
public function adminLabel($short = FALSE) { return $this->getField(parent::adminLabel($short)); }