function easy_social_handler_field::options_form in Easy Social 7.2
Extra Easy Social field options form.
Overrides views_handler_field::options_form
File
- views/
easy_social_handler_field.inc, line 61 - Easy Social view handler.
Class
- easy_social_handler_field
- Handler for displaying Easy Social share buttons in views.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['easy_social'] = array(
'#type' => 'fieldset',
'#title' => t('Easy Social'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#weight' => -1,
);
$form['easy_social']['easy_social_type'] = array(
'#type' => 'radios',
'#title' => t('Type of buttons'),
'#options' => array(
EASY_SOCIAL_WIDGET_HORIZONTAL => t('Horizontal'),
EASY_SOCIAL_WIDGET_VERTICAL => t('Vertical'),
),
'#default_value' => $this->options['easy_social_type'],
);
$form['easy_social']['easy_social_widgets'] = array(
'#type' => 'checkboxes',
'#title' => t('Enabled Widgets'),
'#options' => _easy_social_get_options(),
'#default_value' => $this->options['easy_social_widgets'],
'#description' => t('Some widgets may appear unformatted in the Views preview'),
);
}