function views_handler_field_node::options_form

Same name in other branches
  1. 7.x-3.x 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/translation/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 to 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/translation/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 to node type display.

File

modules/node/views_handler_field_node.inc, line 36

Class

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

Code

function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
    $form['link_to_node'] = array(
        '#title' => t('Link this field to its node'),
        '#description' => t('This will override any other link you have set.'),
        '#type' => 'checkbox',
        '#default_value' => !empty($this->options['link_to_node']),
    );
}