You are here

public function views_handler_title_field::options_form in Title 7

Provide link to entity option.

Overrides views_handler_field_field::options_form

File

views/views_handler_title_field.inc, line 23

Class

views_handler_title_field
Field handler to present field title with link to the entity.

Code

public function options_form(&$form, &$form_state) {
  $form['link_to_entity'] = array(
    '#title' => t('Link this field to the original entity'),
    '#description' => t("Enable to override this field's links."),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_entity']),
  );
  parent::options_form($form, $form_state);
}