public function views_handler_field_machine_name::options_form in Views (for Drupal 7) 7.3
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- handlers/
views_handler_field_machine_name.inc, line 58 - 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
public 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']),
);
}