function views_contact_form_style::options_form in Views Contact Form 7
Options form
Overrides views_plugin_style->options_form
Overrides views_plugin_style::options_form
File
- views/
views_contact_form_style.inc, line 29 - This file holds style plugin for Views
Class
- views_contact_form_style
- @class Extension of the Views Plugin Syle
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Get list of fields in this view & flag available geodata fields
$handlers = $this->display->handler
->get_handlers('field');
$fields = array();
foreach ($handlers as $field_id => $handler) {
$fields[$field_id] = $handler
->ui_name();
}
$form['to'] = array(
'#type' => 'fieldset',
'#tree' => TRUE,
'#title' => t('Mapping'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['to']['email'] = array(
'#type' => 'select',
'#title' => t('Recipient(s) mapping'),
'#description' => t('This field will be used to get the recipient email address.'),
'#options' => $fields,
'#default_value' => $this->options['to']['email'],
);
}