1 views_handler_field_comment_link.inc | views_handler_field_comment_link::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- core/
modules/ comment/ views/ views_handler_field_comment_link.inc, line 24 - Definition of views_handler_field_comment_link.
Class
- views_handler_field_comment_link
- Base field handler to present a link.
Code
function options_form(&$form, &$form_state) {
$form['text'] = array(
'#type' => 'textfield',
'#title' => t('Text to display'),
'#default_value' => $this->options['text'],
);
$form['link_to_node'] = array(
'#title' => t('Link field to the node if there is no comment.'),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_node'],
);
parent::options_form($form, $form_state);
}