You are here

public function views_handler_field_node_type::options_form in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/node/views_handler_field_node_type.inc \views_handler_field_node_type::options_form()
  2. 6.2 modules/node/views_handler_field_node_type.inc \views_handler_field_node_type::options_form()

Provide machine_name option for the node type display.

Overrides views_handler_field_node::options_form

File

modules/node/views_handler_field_node_type.inc, line 28
Definition of views_handler_field_node_type.

Class

views_handler_field_node_type
Field handler to translate a node type into its readable form.

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