function flag_lists_handler_field_ops::options_form in Flag Lists 7.3
Same name and namespace in other branches
- 7 includes/flag_lists_handler_field_ops.inc \flag_lists_handler_field_ops::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
flag_lists_handler_field_ops.inc, line 17
Class
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['flo'] = array(
'#type' => 'fieldset',
'#title' => t('Flag lists operations'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['flo']['force_single'] = array(
'#type' => 'checkbox',
'#title' => t('Force single'),
'#default_value' => $this->options['flo']['force_single'],
'#description' => t('Check this box to restrict selection to a single value.'),
);
$form['flo']['operation'] = array(
'#type' => 'radios',
'#title' => t('Operation'),
'#default_value' => $this->options['flo']['operation'],
'#description' => t('The flag lists operation for this selection.'),
'#options' => array(
'flag' => 'Add to list',
'unflag' => 'Remove from list',
),
'#required' => TRUE,
);
}