You are here

function theme_mediafront_player_view in MediaFront 6.2

Same name and namespace in other branches
  1. 6 mediafront.module \theme_mediafront_player_view()
  2. 7 mediafront.module \theme_mediafront_player_view()

Implement the theme for a views media player.

File

./mediafront.module, line 67

Code

function theme_mediafront_player_view($view, $preset) {
  $params['playlistObj'] = mediafront_get_playlist_from_view($view);
  $params['playlist'] = $view->name;
  $params['args'] = $view->args;
  $params['pageLimit'] = method_exists($view, 'get_items_per_page') ? $view
    ->get_items_per_page() : $view->pager['items_per_page'];
  return mediafront_get_player($preset, $params);
}