1 views_handler_argument_field_list.inc views_handler_argument_field_list::options_form(&$form, &$form_state)

Build the options form.

Overrides views_handler_argument_numeric::options_form

File

core/modules/field/views/views_handler_argument_field_list.inc, line 34
Definition of views_handler_argument_field_list.

Class

views_handler_argument_field_list
Argument handler for list field to show the human readable name in the summary.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  $form['summary']['human'] = array(
    '#title' => t('Display list value as human readable'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['summary']['human'],
    '#states' => array(
      'visible' => array(
        ':input[name="options[default_action]"]' => array('value' => 'summary'),
      ),
    ),
  );
}