public function views_handler_filter_search::value_form in Views (for Drupal 7) 7.3
Provide a simple textfield for equality.
Overrides views_handler_filter::value_form
File
- modules/
search/ views_handler_filter_search.inc, line 77 - Definition of views_handler_filter_search.
Class
- views_handler_filter_search
- Field handler to provide simple renderer that allows linking to a node.
Code
public function value_form(&$form, &$form_state) {
$form['value'] = array(
'#type' => 'textfield',
'#size' => 15,
'#default_value' => $this->value,
'#attributes' => array(
'title' => t('Enter the terms you wish to search for.'),
),
'#title' => empty($form_state['exposed']) ? t('Value') : '',
);
}