You are here

function _filebrowser_metadata_access in Filebrowser 7.3

Same name and namespace in other branches
  1. 8 filebrowser.common.inc \_filebrowser_metadata_access()
  2. 7.4 filebrowser.common.inc \_filebrowser_metadata_access()
  3. 7.2 filebrowser.common.inc \_filebrowser_metadata_access()

Metadata access handler (see hook_menu).

1 call to _filebrowser_metadata_access()
filebrowser_node_view in ./filebrowser.module
Implements hook_node_view().
1 string reference to '_filebrowser_metadata_access'
filebrowser_menu in ./filebrowser.module

File

./filebrowser.common.inc, line 57
Misc filebrowser common functions.

Code

function _filebrowser_metadata_access($fid) {

  //debug  echo '_filebrowser_metadata_access || fid is ; ' . $fid . '<br>';
  $content = _filebrowser_node_content_load($fid);
  $node = node_load($content['nid']);
  return $node->type == 'dir_listing' && node_access("update", $node);
}