function elfinder_default_directory_path in elFinder file manager 6
Same name and namespace in other branches
- 8.2 elfinder.module \elfinder_default_directory_path()
- 6.2 elfinder.module \elfinder_default_directory_path()
- 7.3 elfinder.module \elfinder_default_directory_path()
- 7 elfinder.module \elfinder_default_directory_path()
- 7.2 elfinder.module \elfinder_default_directory_path()
default path to files directory
3 calls to elfinder_default_directory_path()
- elfinder_admin_form in inc/
elfinder.admin.inc - Settings form definition
- elfinder_file_directory_path in ./
elfinder.module - path to files directory
- elfinder_parse_path_tokens in ./
elfinder.module - replace path tokens to its values (%uid, %user, etc)
File
- ./
elfinder.module, line 664
Code
function elfinder_default_directory_path() {
$filepath = '';
if (!function_exists('file_directory_path')) {
$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());
}
}
else {
$filepath = file_directory_path();
}
// drupal_set_message('priv path='.$filepath, 'warning');
return $filepath;
}