function views_handler_field_node_new_comments::options_form in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::options_form()
- 7.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::options_form()
Default options form that 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 34
Class
- views_handler_field_node_new_comments
- Field handler to display the number of new comments.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_comment'] = array(
'#title' => t('Link this field to new comments'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_comment'],
);
}