You are here

function webform_workflow_change_submission_state_submit in Webform Workflow 7

Submit callback for the 'Change workflow state' action configuration form.

See also

webform_workflow_action_info()

File

./webform_workflow.module, line 936
A simple workflow module for webforms.

Code

function webform_workflow_change_submission_state_submit($form, &$form_state) {
  return array(
    'new_state' => webform_workflow_state_load($form_state['values']['new_state']),
    'message' => $form_state['values']['message'] ? $form_state['values']['message'] : NULL,
  );
}