You are here

function crm_core_contact_handler_field_contact_revision::init in CRM Core 7

Init the handler with necessary data.

Parameters

view $view: The $view object this handler is attached to.

array $options: The item from the database; the actual contents of this will vary based upon the type of handler.

Overrides views_handler_field::init

File

modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_revision.inc, line 7

Class

crm_core_contact_handler_field_contact_revision
Field handler to provide simple renderer that allows linking to a contact.

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  if (!empty($this->options['link_to_revision'])) {
    $this->additional_fields['contact_id'] = 'contact_id';
    $this->additional_fields['vid'] = 'vid';
  }
}