function views_handler_field_variable::options_form in Views Variable Field 7
Build the options form.
Overrides views_handler_field::options_form
File
- includes/
views/ views_handler_field_variable.inc, line 58 - Definition of views_handler_field_variable.
Class
- views_handler_field_variable
- A handler to provide a field that display system variables.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['variable'] = array(
'#type' => 'fieldset',
'#collapsible' => FALSE,
'#title' => t('System variable'),
);
$form['variable_name'] = array(
'#type' => 'textfield',
'#title' => t('Variable name'),
'#default_value' => $this->options['variable_name'],
'#description' => t('Enter the machine name of the Drupal variable to display. You may enter data from this view as per the "Replacement patterns" below.'),
'#fieldset' => 'variable',
);
$form['variable']['variable_help'] = $form['alter']['help'];
$form['variable']['variable_help']['#weight'] = 100;
unset($form['variable_help']['#dependency']);
}