You are here

function notifications_views_handler_field_machine_name::options_form in Notifications 7

Provide machine_name option for to node type display.

Overrides views_handler_field_node::options_form

File

notifications_views/includes/notifications_views_handler_field_machine_name.inc, line 17

Class

notifications_views_handler_field_machine_name
Field handler to translate a machine name into its readable form.

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 the content type machine name.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['machine_name']),
    '#fieldset' => 'more',
  );
}