You are here

function _filebrowser_read_description in Filebrowser 7.3

Same name and namespace in other branches
  1. 8 filebrowser.common.inc \_filebrowser_read_description()
  2. 6.2 includes/metadata.inc \_filebrowser_read_description()
  3. 7.4 filebrowser.common.inc \_filebrowser_read_description()
  4. 7.2 filebrowser.common.inc \_filebrowser_read_description()
1 call to _filebrowser_read_description()
filebrowser_filebrowser_metadata_get in ./filebrowser.module

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 '';
  }
}