function filebrowser_filebrowser_actions_info in Filebrowser 7.4
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_filebrowser_actions_info()
- 6.2 filebrowser.module \filebrowser_filebrowser_actions_info()
- 7.2 filebrowser.module \filebrowser_filebrowser_actions_info()
- 7.3 filebrowser.module \filebrowser_filebrowser_actions_info()
Implemets hook_filebrowser_actions_info
Parameters
Object $node:
Return value
array
File
- ./
filebrowser.module, line 1128
Code
function filebrowser_filebrowser_actions_info($node) {
$actions = array();
if ($node->file_listing['.']['files_count'] || $node->file_listing['.']['folders_count']) {
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"),
);
}
if (user_access(FILEBROWSER_RENAME_FILE)) {
$actions[] = array(
'operation' => 'rename',
'title' => t("Rename selected items"),
);
}
}
return $actions;
}