You are here

function views_handler_field_system_info_settings::options_form in Views System 7.3

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_prerender_list::options_form

File

views/handlers/views_handler_field_system_info_settings.inc, line 27
Views field handler for the views_system module.

Class

views_handler_field_system_info_settings
Provides display options and renders the settings field of the system item.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['system_info_settings_format'] = array(
    '#type' => 'textfield',
    '#title' => t('Display format'),
    '#description' => t('Alter the output of this field by specifying a string of text with replacement tokens. Replacement patterns: [name], [value]'),
    '#default_value' => !empty($this->options['system_info_settings_format']) ? $this->options['system_info_settings_format'] : '[name] = [value]',
  );
}