You are here

function workflow_transition_delete in Workflow 5

Same name and namespace in other branches
  1. 5.2 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 1650

Code

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