You are here

function workflow_actions_remove_confirm_submit in Workflow 5

File

./workflow.module, line 1321

Code

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