function views_idle_filter_handler::value_form in Views Idle Filter 7
Options form subform for setting options.
This should be overridden by all child classes and it must define $form['value'].
Overrides views_handler_filter::value_form
See also
options_form()
File
- ./
views_idle_filter_handler.inc, line 130 - Definition of views_idle_filter_handler.
Class
- views_idle_filter_handler
- Views Idle Filter handler.
Code
function value_form(&$form, &$form_state) {
if (!empty($form_state['exposed'])) {
$content = $this->options['content'];
if (strlen($content) > 0 && !empty($this->options['tokenize'])) {
$content = $this->view->style_plugin
->tokenize_value(token_replace($content, array(), array(
'clear' => TRUE,
)), 0);
}
$form['value'] = array(
'#type' => 'item',
'#markup' => check_markup($content, isset($this->options['format']) ? $this->options['format'] : filter_default_format(), '', FALSE),
'#theme' => 'container',
'#theme_wrappers' => array(
'container',
),
'#attributes' => array(
'class' => array(
'form-item',
'form-item-views-idle-filter',
'form-item-' . strtr($this->options['expose']['identifier'], array(
' ' => '-',
'_' => '-',
'[' => '-',
']' => '',
)),
),
),
);
}
}