You are here

function workflow_transition_delete in Workflow 5.2

Same name and namespace in other branches
  1. 5 workflow.module \workflow_transition_delete()
  2. 6.2 workflow.module \workflow_transition_delete()
  3. 6 workflow.module \workflow_transition_delete()

Delete a transition (and any associated actions).

Parameters

$tid: The ID of the transition.

1 call to workflow_transition_delete()
workflow_state_delete in ./workflow.module
Delete a workflow state from the database, including any transitions the state was involved in and any associations with actions that were made to that transition.

File

./workflow.module, line 1838

Code

function workflow_transition_delete($tid) {
  $aids = workflow_get_actions($tid);
  foreach ($aids as $aid => $description) {
    workflow_actions_remove($tid, $aid, $description);
  }
  db_query("DELETE FROM {workflow_transitions} WHERE tid = %d", $tid);
}