You are here

function workflow_reset_cache in Workflow 7.2

Reset the Workflow when States, Transitions have been changed.

4 calls to workflow_reset_cache()
Workflow::save in includes/Entity/Workflow.php
Given information, update or insert a new workflow.
WorkflowConfigTransitionController::save in includes/Entity/WorkflowConfigTransition.php
Implements EntityAPIControllerInterface.
WorkflowStateController::delete in includes/Entity/WorkflowState.php
Implements EntityAPIControllerInterface.
WorkflowStateController::save in includes/Entity/WorkflowState.php
Implements EntityAPIControllerInterface.

File

./workflow.entity.inc, line 525
Integrates workflow with entity API.

Code

function workflow_reset_cache($wid) {
  $ids = array(
    $wid,
  );
  entity_get_controller('Workflow')
    ->resetCache($ids);
}