You are here

function workflow_delete_form_submit in Workflow 5.2

Same name and namespace in other branches
  1. 5 workflow.module \workflow_delete_form_submit()

File

./workflow.module, line 935

Code

function workflow_delete_form_submit($form_id, $form_values) {
  if ($form_values['confirm'] == 1) {
    $workflow_name = workflow_get_name($form_values['wid']);
    workflow_deletewf($form_values['wid']);
    watchdog('workflow', t('Deleted workflow %name with all its states', array(
      '%name' => $workflow_name,
    )));
    drupal_set_message(t('The workflow %name with all its states was deleted.', array(
      '%name' => $workflow_name,
    )));
    return 'admin/build/workflow';
  }
}