You are here

function slickgrid_views_plugin::init in Slickgrid 7

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.

Overrides views_plugin_style::init

File

includes/slickgrid_views_plugin.inc, line 10

Class

slickgrid_views_plugin
Extending the view_plugin_style class to provide a slickgrid style.

Code

function init(&$view, &$display, $options = NULL) {
  parent::init($view, $display, $options);
  if (isset($options['pager']) && $options['pager']) {

    // If using slickgrid pager, need to set items per page to 0 so all items are available
    $this->display->handler->default_display->options['pager']['options']['items_per_page'] = 0;
  }
}