You are here

function elfinder_default_directory_path in elFinder file manager 7.3

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 elfinder.module \elfinder_default_directory_path()
  5. 7.2 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 918

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;
}