function filebrowser_form_actions_submit in Filebrowser 7.2
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_form_actions_submit()
- 6.2 filebrowser.form.actions.inc \filebrowser_form_actions_submit()
- 7.4 filebrowser.module \filebrowser_form_actions_submit()
- 7.3 filebrowser.module \filebrowser_form_actions_submit()
File
- ./
filebrowser.module, line 755
Code
function filebrowser_form_actions_submit($form, $form_state) {
// Collect de selected checkboxes in put them in array $fid
$fids = array();
if (!empty($form_state['values']['action'])) {
foreach ($form_state['values']['table'] as $key => $value) {
if ($value) {
$fids[] = $form['table']['#options'][$key]['fid'];
}
}
$result = module_invoke_all('filebrowser_action_process', $form['#node'], $form_state['values']['action'], $fids);
if ($result) {
return $result;
}
}
header('Location: ' . request_uri(), TRUE, 302);
exit;
}