You are here

function hosting_task_confirm_form_submit in Hostmaster (Aegir) 6

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

hosting_add_task()

File

modules/hosting/task/hosting_task.module, line 492
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();
}