public function WebformViewsSelectStyle::options_form in Webform Views Select 7
Provide a form to edit options for this plugin.
Overrides views_plugin_style_mapping::options_form
File
- ./
WebformViewsSelectStyle.inc, line 53 - Contains WebformViewsSelectStyle.
Class
- WebformViewsSelectStyle
- The style plugin for Webform Views Select.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['html'] = array(
'#type' => 'fieldset',
'#title' => t('HTML filter'),
);
$form['html']['strip'] = array(
'#type' => 'checkbox',
'#title' => t('No HTML tags allowed.'),
'#default_value' => $this->options['html']['strip'],
);
$form['html']['tags_allowed'] = array(
'#type' => 'textfield',
'#title' => t('Allowed HTML tags'),
'#default_value' => $this->options['html']['tags_allowed'],
'#description' => t('A space-separated list of HTML tags allowed. Disallowed tags are stripped from the content.'),
'#states' => array(
'enabled' => array(
':input[name="style_options[html][strip]"]' => array(
'checked' => FALSE,
),
),
),
);
}