function elfinder_file_directory_path in elFinder file manager 6
Same name and namespace in other branches
- 8.2 elfinder.module \elfinder_file_directory_path()
- 6.2 elfinder.module \elfinder_file_directory_path()
- 7.3 elfinder.module \elfinder_file_directory_path()
- 7 elfinder.module \elfinder_file_directory_path()
- 7.2 elfinder.module \elfinder_file_directory_path()
path to files directory
2 calls to elfinder_file_directory_path()
- elfinder_connector in ./
elfinder.module - File browser to filesystem php connector callback
- elfinder_file_directory_url in ./
elfinder.module - files directory url
File
- ./
elfinder.module, line 605
Code
function elfinder_file_directory_path($absolute = FALSE) {
$sys_filepath = elfinder_default_directory_path();
$path = '';
/* Using custom path if defined */
if (variable_get('elfinder_settings_filesystem_root', 'system') == 'custom') {
$path = variable_get('elfinder_settings_filesystem_root_custom', '');
$path = elfinder_parse_path_tokens($path);
}
else {
$path = $sys_filepath;
/* FIXME: Ugly code */
if ($absolute && variable_get('file_default_scheme', 'public') != 'private') {
$path = elfinder_document_root() . "/{$path}";
}
}
return $path;
}