function views_plugin_style::init

Initialize a style plugin.

Parameters

view $view:

object $display:

array $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

plugins/views_plugin_style.inc, line 48

Class

views_plugin_style
Base class to define a style plugin handler.

Code

public 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,
    );
}