function osmplayer_get_templates in MediaFront 7.2
Same name and namespace in other branches
- 6.2 players/osmplayer/osmplayer.module \osmplayer_get_templates()
- 6 players/osmplayer/osmplayer.module \osmplayer_get_templates()
- 7 players/osmplayer/osmplayer.module \osmplayer_get_templates()
Returns all of the osmplayer templates.
Return value
string
1 call to osmplayer_get_templates()
- osmplayer_osmplayer_info in players/
osmplayer/ osmplayer.module - Implementation of hook_osmplayer_player_info
File
- players/
osmplayer/ osmplayer.module, line 911
Code
function osmplayer_get_templates($base_path) {
$templates = array();
$path = getcwd() . '/' . $base_path . '/*';
foreach (osmplayer_get_resources($path, $base_path) as $name => $resources) {
$templates[$name] = array(
'path' => $resources['path'],
'css' => $resources['css'],
'js' => $resources['js'],
);
}
return $templates;
}