function views_handler_field_markup::construct

Same name in other branches
  1. 7.x-3.x 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,
        );
    }
}