You are here

function views_handler_field_markup::construct in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_field_markup.inc \views_handler_field_markup::construct()
  2. 7.3 handlers/views_handler_field_markup.inc \views_handler_field_markup::construct()

Constructor; calls to base object constructor.

Overrides views_handler_field::construct

File

handlers/views_handler_field_markup.inc, line 17

Class

views_handler_field_markup
A handler to run a field through check_markup, using a companion format field.

Code

function construct() {
  parent::construct();
  $this->format = $this->definition['format'];
  $this->additional_fields = array();
  if (!is_numeric($this->format)) {
    $this->additional_fields['format'] = array(
      'field' => $this->format,
    );
  }
}