1 views_plugin_exposed_form_input_required.inc | views_plugin_exposed_form_input_required::options_form(&$form, &$form_state) |
Provide a form to edit options for this plugin.
Overrides views_plugin_exposed_form::options_form
File
- core/
modules/ views/ plugins/ views_plugin_exposed_form_input_required.inc, line 22 - Definition of views_plugin_exposed_form_input_required.
Class
- views_plugin_exposed_form_input_required
- Exposed form plugin that provides an exposed form with required input.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['text_input_required'] = array(
'#type' => 'text_format',
'#title' => t('Text on demand'),
'#description' => t('Text to display instead of results until the user selects and applies an exposed filter.'),
'#default_value' => $this->options['text_input_required'],
'#format' => isset($this->options['text_input_required_format']) ? $this->options['text_input_required_format'] : filter_default_format(),
);
}