function views_plugin_display::init
3.x views_plugin_display.inc | views_plugin_display::init(&$view, &$display, $options = NULL) |
2.x views_plugin_display.inc | views_plugin_display::init(&$view, &$display, $options = NULL) |
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);
}