You are here

function views_handler_field_watchdog_message::init in Views Watchdog 7.3

Same name and namespace in other branches
  1. 6 views/handlers/views_handler_field_watchdog_message.inc \views_handler_field_watchdog_message::init()

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

views/handlers/views_handler_field_watchdog_message.inc, line 47
Views field handler for the views_watchdog module.

Class

views_handler_field_watchdog_message
Provides message display options for the watchdog entry.

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  if (!empty($options['watchdog_message_format'])) {
    $this->additional_fields[] = 'variables';
  }
  if (!empty($options['watchdog_message_link'])) {
    $this->additional_fields[] = 'wid';
  }
}