You are here

function theme_mediafront_player_view in MediaFront 7

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

Implement the theme for the media player for the Views module.

File

./mediafront.module, line 81

Code

function theme_mediafront_player_view($variables) {
  $view = $variables['view'];
  $preset = $variables['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);
}