You are here

function osmplayer_get_css_dir in MediaFront 6

Same name and namespace in other branches
  1. 6.2 players/osmplayer/osmplayer.module \osmplayer_get_css_dir()
  2. 7 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 211

Code

function osmplayer_get_css_dir() {

  // Now make sure that the osmplayer CSS directory exists.
  $css_dir = getcwd() . '/' . file_directory_path() . '/' . '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;
}