function osmplayer_get_css_dir in MediaFront 7
Same name and namespace in other branches
- 6.2 players/osmplayer/osmplayer.module \osmplayer_get_css_dir()
- 6 players/osmplayer/osmplayer.module \osmplayer_get_css_dir()
Gets the CSS directory.
Return value
String - The css folder.
2 calls to osmplayer_get_css_dir()
- osmplayer_clear_css in players/
osmplayer/ osmplayer.module - Clears the osmplayer CSS directory.
- osmplayer_get_player_object in players/
osmplayer/ osmplayer.module - Returns the OSMPlayer object.
File
- players/
osmplayer/ osmplayer.module, line 208
Code
function osmplayer_get_css_dir() {
// Now make sure that the osmplayer CSS directory exists.
$css_dir = getcwd() . '/' . variable_get('file_public_path', conf_path() . '/files') . '/' . 'css';
if (!is_dir($css_dir)) {
mkdir($css_dir, 0775);
}
$css_dir .= '/' . 'osmplayer';
if (!is_dir($css_dir)) {
mkdir($css_dir, 0775);
}
// Return the CSS directory.
return $css_dir;
}