function filebrowser_filebrowser_actions_info in Filebrowser 7.2
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_filebrowser_actions_info()
- 6.2 filebrowser.module \filebrowser_filebrowser_actions_info()
- 7.4 filebrowser.module \filebrowser_filebrowser_actions_info()
- 7.3 filebrowser.module \filebrowser_filebrowser_actions_info()
hook_filebrowser_actions_info implementation
Parameters
unknown_type $node:
File
- ./
filebrowser.module, line 851
Code
function filebrowser_filebrowser_actions_info($node) {
$actions = array();
if ($node->file_listing['.']['files_count'] > 0) {
if (_filebrowser_can_download_archive($node) && function_exists('zip_open')) {
$actions[] = array(
'operation' => 'download',
'title' => t("Download selected items as an ZIP archive (only files)"),
);
}
if (user_access(FILEBROWSER_DELETE_FILE)) {
$actions[] = array(
'operation' => 'delete',
'title' => t("Delete selected items"),
);
}
}
return $actions;
}