You are here

function _filebrowser_metadata_access in Filebrowser 8

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

Metadata access handler (see hook_menu).

1 call to _filebrowser_metadata_access()
filebrowser_node_view_bak in ./filebrowser.module
Implements hook_node_view().

File

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

Code

function _filebrowser_metadata_access($fid) {
  $content = _filebrowser_node_content_load($fid);
  $node = node_load($content['nid']);
  return $node->type == 'dir_listing' && node_access("update", $node);
}