You are here

function workflow_delete_workflows_by_wid in Workflow 7

Same name and namespace in other branches
  1. 7.2 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 71
Contains contains per-class functions, that are deprecated. Usage: The new code can be tested, by removing this file-include from workflow.module.

Code

function workflow_delete_workflows_by_wid($wid) {
  $workflow = Workflow::load($wid);
  $workflow
    ->delete();
}