You are here

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

Same name and namespace in other branches
  1. 6.3 modules/contact/views_handler_field_contact_link.inc \views_handler_field_contact_link::options_form()
  2. 6.2 modules/contact/views_handler_field_contact_link.inc \views_handler_field_contact_link::options_form()

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_user_link::options_form

File

modules/contact/views_handler_field_contact_link.inc, line 18
Definition of views_handler_field_contact_link.

Class

views_handler_field_contact_link
A field that links to the user contact page, if access is permitted.

Code

public function options_form(&$form, &$form_state) {
  $form['text']['#title'] = t('Link label');
  $form['text']['#required'] = TRUE;
  $form['text']['#default_value'] = empty($this->options['text']) ? t('contact') : $this->options['text'];
  parent::options_form($form, $form_state);
}