function workflow_tab_form_submit in Workflow 5
Same name and namespace in other branches
- 5.2 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()
File
- ./
workflow.module, line 186
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);
return 'node/' . $node->nid;
}