You are here

function _filebrowser_can_download_archive in Filebrowser 7.2

Same name and namespace in other branches
  1. 8 filebrowser.common.inc \_filebrowser_can_download_archive()
  2. 6.2 includes/node.inc \_filebrowser_can_download_archive()
  3. 7.4 filebrowser.common.inc \_filebrowser_can_download_archive()
  4. 7.3 filebrowser.common.inc \_filebrowser_can_download_archive()

Check if user can download ZIP archives.

1 call to _filebrowser_can_download_archive()
filebrowser_filebrowser_actions_info in ./filebrowser.module
hook_filebrowser_actions_info implementation

File

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

Code

function _filebrowser_can_download_archive(&$node) {
  return node_access('view', $node) && $node->folder_rights->download_archive && user_access(FILEBROWSER_DOWNLOAD_ARCHIVE);
}