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

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

Overrides views_handler_field::options_form

File

core/modules/views/handlers/views_handler_field_machine_name.inc, line 47
Definition of views_handler_field_machine_name.

Class

views_handler_field_machine_name
Field handler whichs allows to show machine name content as human name.

Code

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

  $form['machine_name'] = array(
    '#title' => t('Output machine name'),
    '#description' => t('Display field as machine name.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['machine_name']),
  );
}