function osmplayer_get_directories in MediaFront 6
Same name and namespace in other branches
- 6.2 players/osmplayer/osmplayer.module \osmplayer_get_directories()
3 calls to osmplayer_get_directories()
- osmplayer_get_skins in players/
osmplayer/ osmplayer.module - osmplayer_get_templates in players/
osmplayer/ osmplayer.module - osmplayer_get_themes in players/
osmplayer/ osmplayer.module
File
- players/
osmplayer/ osmplayer.module, line 714
Code
function osmplayer_get_directories($player_path) {
$directories = array();
$base_directory = getcwd() . '/';
$base_directory .= drupal_get_path('module', 'osmplayer') . '/';
$base_directory .= $player_path;
if (is_dir($base_directory) && ($handle = opendir($base_directory))) {
while (FALSE !== ($directory = readdir($handle))) {
if (strpos($directory, '.') === FALSE && strtolower($directory) !== 'cvs' && is_dir($base_directory . '/' . $directory)) {
$directories[$directory] = $directory;
}
}
closedir($handle);
}
return $directories;
}