You are here

function workflow_select_given_state_action_submit in Workflow 5.2

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

File

./workflow.module, line 743

Code

function workflow_select_given_state_action_submit($form_id, $form_values) {
  $state_name = db_result(db_query("SELECT state FROM {workflow_states} WHERE sid = %d", $form_values['target_sid']));
  return array(
    'target_sid' => $form_values['target_sid'],
    'state_name' => check_plain(t($state_name)),
    'force' => $form_values['force'],
    'workflow_comment' => $form_values['workflow_comment'],
  );
}