You are here

function views_plugin_display::init in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display.inc \views_plugin_display::init()
  2. 7.3 plugins/views_plugin_display.inc \views_plugin_display::init()

Init will be called after construct, when the plugin is attached to a view and a display.

Overrides views_plugin::init

File

plugins/views_plugin_display.inc, line 29
Contains the base display plugin.

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function init(&$view, &$display, $options = NULL) {
  $this->view =& $view;
  $this->display =& $display;

  // Make some modifications:
  if (!isset($options)) {
    $options = $display->display_options;
  }
  if ($this
    ->is_default_display() && isset($options['defaults'])) {
    unset($options['defaults']);
  }
  $this
    ->unpack_options($this->options, $options);
}