function hosting_task_confirm_form_submit in Hosting 6.2
Same name and namespace in other branches
- 5 task/hosting_task.module \hosting_task_confirm_form_submit()
- 7.4 task/hosting_task.module \hosting_task_confirm_form_submit()
- 7.3 task/hosting_task.module \hosting_task_confirm_form_submit()
Generic form submit handler for tasks confirmation
This handler gets called after any task has been confirmed by the user. It will inject a new task in the queue and redirect the user to the originating node.
See also
File
- task/
hosting_task.module, line 489 - Web server node type is defined here.
Code
function hosting_task_confirm_form_submit($form, &$form_state) {
$values = $form_state['values'];
hosting_add_task($values['nid'], $values['task'], $values['parameters']);
$form_state['redirect'] = 'node/' . $values['nid'];
modalframe_close_dialog();
}