You are here

function workflow_select_given_state_action_submit in Workflow 6.2

Same name and namespace in other branches
  1. 5.2 workflow.module \workflow_select_given_state_action_submit()
  2. 6 workflow_actions/workflow_actions.module \workflow_select_given_state_action_submit()

Submit handler for "Change workflow state of post to new state" action configuration form.

See also

workflow_select_given_state_action_form()

File

workflow_actions/workflow_actions.module, line 153
Provide actions and triggers for workflows. Why it's own module? Some sites prefer rules, some prefer actions, all prefer a lower code footprint and better performance. Additional creadit to gcassie ( http://drupal.org/user/80260 ) for the…

Code

function workflow_select_given_state_action_submit($form_id, $form_state) {
  $state_name = workflow_get_state_name($form_state['values']['target_sid']);
  return array(
    'target_sid' => $form_state['values']['target_sid'],
    'state_name' => $state_name,
    'force' => $form_state['values']['force'],
    'workflow_comment' => $form_state['values']['workflow_comment'],
  );
}