function _filebrowser_file_url in Filebrowser 6.2
1 call to _filebrowser_file_url()
- _filebrowser_load_files in includes/
filesystem.inc - Load data from current path.
File
- includes/
downloads.inc, line 126
Code
function _filebrowser_file_url($node, $record) {
static $cache = NULL;
if (is_null($cache)) {
$cache = module_invoke_all('filebrowser_download_manager_info');
}
$mode = $node->folder_rights->download_manager;
$mode = isset($cache[$mode]) ? $mode : 'private';
$callback = $cache[$mode]['url_callback'];
return $callback($node, $record);
}