You are here

function views_handler_field_comment::options_form in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/comment/views_handler_field_comment.inc \views_handler_field_comment::options_form()
  2. 7.3 modules/comment/views_handler_field_comment.inc \views_handler_field_comment::options_form()

Provide link-to-comment option

Overrides views_handler_field::options_form

File

modules/comment/views_handler_field_comment.inc, line 26

Class

views_handler_field_comment
Field handler to allow linking to a comment

Code

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