function _filebrowser_read_description in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.common.inc \_filebrowser_read_description()
- 7.4 filebrowser.common.inc \_filebrowser_read_description()
- 7.2 filebrowser.common.inc \_filebrowser_read_description()
- 7.3 filebrowser.common.inc \_filebrowser_read_description()
1 call to _filebrowser_read_description()
File
- includes/
metadata.inc, line 24
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 '';
}
}