You are here

function views_handler_field_system_info_regions::options_form in Views System 7.3

Same name and namespace in other branches
  1. 6.3 views/handlers/views_handler_field_system_info_regions.inc \views_handler_field_system_info_regions::options_form()
  2. 6.2 views/handlers/views_handler_field_system_info_regions.inc \views_handler_field_system_info_regions::options_form()

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_regions.inc, line 27
Views field handler for the views_system module.

Class

views_handler_field_system_info_regions
Provides display options and renders the regions field of the system item.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['system_info_regions_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: [human_name], [machine_name]'),
    '#default_value' => !empty($this->options['system_info_regions_format']) ? $this->options['system_info_regions_format'] : '[human_name] ([machine_name])',
  );
}