function views_handler_filter_search::exposed_form in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 modules/search/views_handler_filter_search.inc \views_handler_filter_search::exposed_form()
Provide a simple textfield for equality
Overrides views_handler_filter::exposed_form
File
- modules/
search/ views_handler_filter_search.inc, line 36
Class
- views_handler_filter_search
- Field handler to provide simple renderer that allows linking to a node.
Code
function exposed_form(&$form, &$form_state) {
if (isset($this->options['expose']['identifier'])) {
$key = $this->options['expose']['identifier'];
$form[$key] = array(
'#type' => 'textfield',
'#size' => 15,
'#default_value' => $this->value,
'#attributes' => array(
'title' => t('Enter the terms you wish to search for.'),
),
);
}
}