You are here

function views_handler_field_node_registration::init in Node registration 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

includes/views/views_handler_field_node_registration.inc, line 10
Views handler for Node registration fields

Class

views_handler_field_node_registration
@file Views handler for Node registration fields

Code

function init(&$view, &$options) {
  parent::init($view, $options);

  //if (!empty($this->options['link_to_node_registration'])) {
  $this->additional_fields['registration_id'] = array(
    'table' => 'node_registration',
    'field' => 'registration_id',
  );
  $this->additional_fields['email'] = array(
    'table' => 'node_registration',
    'field' => 'email',
  );

  //}
}