You are here

function html5_media_get_player_info in HTML5 Media 7

Returns all of the media player information.

3 calls to html5_media_get_player_info()
html5_media_add_resources in ./html5_media.module
Adds the media player resources to the view.
html5_media_field_formatter_settings_form in ./html5_media.module
Implements hook_field_formatter_settings_form
html5_media_theme in ./html5_media.module
Implements hook_theme

File

./html5_media.module, line 74

Code

function html5_media_get_player_info() {

  // Implement hook_html5_player_info
  $cache = cache_get('html5_player_info');
  if ($cache) {
    return $cache->data;
  }
  else {

    // Invoke all media_player_info and then set the cache.
    $player_info = module_invoke_all('html5_player_info');
    cache_set('html5_player_info', $player_info);
    return $player_info;
  }
}