1 views_plugin_style.inc | views_plugin_style::init(&$view, &$display, $options = NULL) |
Initialize a style plugin.
Parameters
$view:
$display:
$options: The style options might come externally as the style can be sourced from at least two locations. If it's not included, look on the display.
File
- core/
modules/ views/ plugins/ views_plugin_style.inc, line 47 - Definition of views_plugin_style.
Class
- views_plugin_style
- Base class to define a style plugin handler.
Code
function init(&$view, &$display, $options = NULL) {
$this->view = &$view;
$this->display = &$display;
// Overlay incoming options on top of defaults
$this->unpack_options($this->options, isset($options) ? $options : $display->handler->get_option('style_options'));
if ($this->uses_row_plugin() && $display->handler->get_option('row_plugin')) {
$this->row_plugin = $display->handler->get_plugin('row');
}
$this->options += array(
'grouping' => array(),
);
$this->definition += array(
'uses grouping' => TRUE,
);
}