You are here

public function views_handler_field_node::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.inc \views_handler_field_node::options_form()
  2. 6.2 modules/node/views_handler_field_node.inc \views_handler_field_node::options_form()

Provide link to node option.

Overrides views_handler_field::options_form

4 calls to views_handler_field_node::options_form()
views_handler_field_history_user_timestamp::options_form in modules/node/views_handler_field_history_user_timestamp.inc
Provide link to node option.
views_handler_field_node_language::options_form in modules/locale/views_handler_field_node_language.inc
Provide link to node option.
views_handler_field_node_revision::options_form in modules/node/views_handler_field_node_revision.inc
Provide link to revision option.
views_handler_field_node_type::options_form in modules/node/views_handler_field_node_type.inc
Provide machine_name option for the node type display.
4 methods override views_handler_field_node::options_form()
views_handler_field_history_user_timestamp::options_form in modules/node/views_handler_field_history_user_timestamp.inc
Provide link to node option.
views_handler_field_node_language::options_form in modules/locale/views_handler_field_node_language.inc
Provide link to node option.
views_handler_field_node_revision::options_form in modules/node/views_handler_field_node_revision.inc
Provide link to revision option.
views_handler_field_node_type::options_form in modules/node/views_handler_field_node_type.inc
Provide machine_name option for the node type display.

File

modules/node/views_handler_field_node.inc, line 45
Definition of views_handler_field_node.

Class

views_handler_field_node
Field handler to provide simple renderer that allows linking to a node.

Code

public function options_form(&$form, &$form_state) {
  $form['link_to_node'] = array(
    '#title' => t('Link this field to the original piece of content'),
    '#description' => t("Enable to override this field's links."),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_node']),
  );
  parent::options_form($form, $form_state);
}