You are here

function redhen_contact_views_handler_field_redhen_contact_link::options_form in RedHen CRM 7

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

Overrides views_handler_field::options_form

File

modules/redhen_contact/includes/views/redhen_contact_views_handler_field_redhen_contact_link.inc, line 21
Definition of redhen_contact_views_handler_field_redhen_contact_link.

Class

redhen_contact_views_handler_field_redhen_contact_link
Field handler to present the view link for a RedHen Contact.

Code

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

  // The path is set by render_link function so don't allow to set it.
  $form['alter']['path'] = array(
    '#access' => FALSE,
  );
  $form['alter']['external'] = array(
    '#access' => FALSE,
  );
}