You are here

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

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

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_numeric::options_form

File

modules/comment/views_handler_field_node_new_comments.inc, line 52
Definition of views_handler_field_node_new_comments.

Class

views_handler_field_node_new_comments
Field handler to display the number of new comments.

Code

public function options_form(&$form, &$form_state) {
  $form['link_to_comment'] = array(
    '#title' => t('Link this field to new comments'),
    '#description' => t("Enable to override this field's links."),
    '#type' => 'checkbox',
    '#default_value' => $this->options['link_to_comment'],
  );
  parent::options_form($form, $form_state);
}