function jw_player_preset_plugins in JW Player 7.2
Same name and namespace in other branches
- 8 jw_player.module \jw_player_preset_plugins()
- 7 jw_player.module \jw_player_preset_plugins()
Retrieves all available preset plugins.
1 call to jw_player_preset_plugins()
- jw_player_ctools_export_ui_form in plugins/
export_ui/ jw_player_ctools_export_ui.inc - Implements hook_ctools_export_ui_form().
File
- ./
jw_player.module, line 960 - Adds a theme function which allows theme developers to use the JW Player.
Code
function jw_player_preset_plugins($name = NULL) {
$plugins =& drupal_static(__FUNCTION__);
if (!isset($plugins)) {
$plugins = module_invoke_all('jw_player_plugin_info');
// Allow modules to alter other modules' plugin definitions
drupal_alter('jw_player_plugin_info', $plugins);
}
if ($name && isset($plugins[$name])) {
return $plugins[$name];
}
return $plugins;
}