function filebrowser_filebrowser_action_process in Filebrowser 7.2
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_filebrowser_action_process()
- 6.2 filebrowser.module \filebrowser_filebrowser_action_process()
- 7.4 filebrowser.module \filebrowser_filebrowser_action_process()
- 7.3 filebrowser.module \filebrowser_filebrowser_action_process()
hook_filebrowser_action_process implementation
File
- ./
filebrowser.module, line 874
Code
function filebrowser_filebrowser_action_process($node, $action, $fids) {
switch ($action) {
case 'download':
$root_fid = $node->file_listing['.']['fid'];
if (count($fids) > 0) {
$root_fid .= ":" . implode(',', $fids);
}
require_once "filebrowser.pages.inc";
filebrowser_page_download($root_fid);
break;
case 'delete':
drupal_goto("filebrowser/delete/" . implode(',', $fids), array(
'query' => drupal_get_destination(),
));
}
}