You are here

public function views_plugin_style::init in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_style.inc \views_plugin_style::init()
  2. 6.2 plugins/views_plugin_style.inc \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
Definition of views_plugin_style.

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