You are here

function elfinder_default_directory_path in elFinder file manager 7.2

Same name and namespace in other branches
  1. 8.2 elfinder.module \elfinder_default_directory_path()
  2. 6.2 elfinder.module \elfinder_default_directory_path()
  3. 6 elfinder.module \elfinder_default_directory_path()
  4. 7.3 elfinder.module \elfinder_default_directory_path()
  5. 7 elfinder.module \elfinder_default_directory_path()

default path to files directory

1 call to elfinder_default_directory_path()
elfinder_parse_path_tokens in ./elfinder.module
replace path tokens to its values (%uid, %user, etc)

File

./elfinder.module, line 1098

Code

function elfinder_default_directory_path() {
  $filepath = '';
  $scheme = file_default_scheme();
  if ($scheme == 'public') {
    $filepath = variable_get('file_public_path', conf_path() . '/files');
  }
  else {
    $filepath = variable_get('file_private_path', conf_path());
  }
  return $filepath;
}