function _filebrowser_read_description in Filebrowser 7.3
Same name and namespace in other branches
- 8 filebrowser.common.inc \_filebrowser_read_description()
- 6.2 includes/metadata.inc \_filebrowser_read_description()
- 7.4 filebrowser.common.inc \_filebrowser_read_description()
- 7.2 filebrowser.common.inc \_filebrowser_read_description()
1 call to _filebrowser_read_description()
File
- ./
filebrowser.common.inc, line 587 - Misc filebrowser common functions.
Code
function _filebrowser_read_description($file_path) {
$base_path = _filebrowser_safe_dirname($file_path);
$data = _filebrowser_load_description_file($base_path);
$name = _filebrowser_safe_basename($file_path);
if (isset($data['data'][$name])) {
return $data['data'][$name];
}
else {
return '';
}
}