You are here

function workflow_delete_workflows_by_wid in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow.deprecated.inc \workflow_delete_workflows_by_wid()

Given a wid, delete the workflow and its data.

@deprecated: workflow_delete_workflows_by_wid() --> Workflow::delete().

File

./workflow.deprecated.inc, line 129
Contains contains per-class functions, that are deprecated.

Code

function workflow_delete_workflows_by_wid($wid) {
  $workflow = workflow_load_single($wid);
  $workflow
    ->delete();
}