You are here

function workflow_actions_remove_form_submit in Workflow 5

File

./workflow.module, line 1436

Code

function workflow_actions_remove_form_submit($form_id, $form_values) {
  if ($form_values['confirm'] == 1) {
    $aid = $form_values['aid'];
    $actions = actions_get_all_actions();
    $action = $actions[$aid]['description'];
    workflow_actions_remove($form_values['tid'], $aid);
    watchdog('workflow', t('Action %action deleted', array(
      '%action' => $action,
    )));
    drupal_set_message(t('Action %action deleted.', array(
      '%action' => $action,
    )));
  }
  return 'admin/build/workflow/actions/' . $form_values['wid'];
}