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 46 - Definition of views_handler_field_machine_name.
Class
- views_handler_field_machine_name
- Field handler that allows showing machine name content as human names.
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']),
);
}