You are here

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

Same name and namespace in other branches
  1. 6.3 modules/comment/views_handler_field_comment_username.inc \views_handler_field_comment_username::options_form()
  2. 6.2 modules/comment/views_handler_field_comment_username.inc \views_handler_field_comment_username::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_username.inc, line 36
Definition of views_handler_field_comment_username.

Class

views_handler_field_comment_username
Field handler to allow linking to a user account or homepage.

Code

public function options_form(&$form, &$form_state) {
  $form['link_to_user'] = array(
    '#title' => t("Link this field to its user or an author's homepage"),
    '#type' => 'checkbox',
    '#default_value' => $this->options['link_to_user'],
  );
  parent::options_form($form, $form_state);
}