You are here

function crm_core_contact_handler_field_contact::options_form in CRM Core 7

Same name in this branch
  1. 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact.inc \crm_core_contact_handler_field_contact::options_form()
  2. 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_link.inc \crm_core_contact_handler_field_contact::options_form()

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

Overrides views_handler_field::options_form

File

modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_link.inc, line 21

Class

crm_core_contact_handler_field_contact
A link to a CRM Core Contact.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display'),
    '#default_value' => $this->options['text'],
  );
}