public function views_handler_field_comment_node_link::options_form in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/comment/views_handler_field_comment_node_link.inc \views_handler_field_comment_node_link::options_form()
- 6.2 modules/comment/views_handler_field_comment_node_link.inc \views_handler_field_comment_node_link::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- modules/
comment/ views_handler_field_comment_node_link.inc, line 45 - Definition of views_handler_field_comment_node_link.
Class
- views_handler_field_comment_node_link
- Handler for showing comment module's node link.
Code
public function options_form(&$form, &$form_state) {
$form['teaser'] = array(
'#type' => 'checkbox',
'#title' => t('Show teaser-style link'),
'#default_value' => $this->options['teaser'],
'#description' => t('Show the comment link in the form used on standard node teasers, rather than the full node form.'),
);
parent::options_form($form, $form_state);
}