You are here

function webfm_get_root_path in Web File Manager 5

Helper function to get root path of webfm

3 calls to webfm_get_root_path()
webfm_ajax in ./webfm.module
Ajax post requests
webfm_path_access in ./webfm.module
Helper function to determine if a path is accessible by a user with 'access webfm'
webfm_upload in ./webfm.module
Called by upload form submit

File

./webfm.module, line 1930

Code

function webfm_get_root_path() {
  static $webfm_root_path;

  //Get root directory of module
  if (empty($webfm_root_path)) {
    $webfm_root_path = variable_get('webfm_root_dir', '');
    if (empty($webfm_root_path)) {
      $webfm_root_path = NULL;
    }
    else {
      $webfm_root_path = '/' . $webfm_root_path;
    }
  }
  return $webfm_root_path;
}