1 views_handler_field_node_new_comments.inc | views_handler_field_node_new_comments::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler_field_numeric::options_form
File
- core/
modules/ comment/ views/ views_handler_field_node_new_comments.inc, line 38 - 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
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);
}