1.20.x views_handler_field_contact_link.inc | views_handler_field_contact_link::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler_field_user_link::options_form
File
- modules/
contact/ views/ views_handler_field_contact_link.inc, line 15 - 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
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);
}