You are here

function mediafront_plugin_style_player::init in MediaFront 7.2

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.

Overrides views_plugin_style::init

File

views/mediafront_plugin_style_player.inc, line 28
This file holds style plugin for MediaFront Views

Class

mediafront_plugin_style_player
@class Extension of the Views Plugin Syle for the Media Player from MediaFront

Code

function init(&$view, &$display, $options = NULL) {
  parent::init($view, $display, $options);

  /**
  * This was keeping the view from being able to specify how many entries
  * were in the playlist... if we want this, we need to figure out how
  * to bring in the preset settings for pageLimit into the view to limit
  * the amount of results displayed.
  *
      $view->display_handler->set_option('pager', array(
   'type' => 'some',
   'options' => $view->display_handler->options['pager']['options'],
      ));
  *
  */

  // We want to get the total rows.
  $view->get_total_rows = TRUE;
}