You are here

function views_plugin_style::init in Views (for Drupal 7) 6.3

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

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

plugins/views_plugin_style.inc, line 43

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' => '',
  );
  $this->definition += array(
    'uses grouping' => TRUE,
  );
}