function workflow_tab_form_submit in Workflow 5.2
Same name and namespace in other branches
- 5 workflow.module \workflow_tab_form_submit()
- 6.2 workflow.pages.inc \workflow_tab_form_submit()
- 6 workflow.pages.inc \workflow_tab_form_submit()
- 7 workflow.pages.inc \workflow_tab_form_submit()
Submit handler for workflow page.
File
- ./
workflow.module, line 296
Code
function workflow_tab_form_submit($form_id, $form_values) {
$node = $form_values['node'];
// Mockup a node so we don't need to repeat the code for processing this.
$node->workflow = $form_values['workflow'];
$node->workflow_comment = $form_values['workflow_comment'];
$node->workflow_scheduled = $form_values['workflow_scheduled'];
$node->workflow_scheduled_date = $form_values['workflow_scheduled_date'];
$node->workflow_scheduled_hour = $form_values['workflow_scheduled_hour'];
// Call node_save() to make sure all saving properties run on this node.
node_save($node);
// Redirect user from tab page to node itself.
return 'node/' . $node->nid;
}