You are here

public static function WorkflowScheduledTransition::deleteByNid in Workflow 7

Given a node, delete transitions for it. Better use delete(), instead of this static function.

3 calls to WorkflowScheduledTransition::deleteByNid()
WorkflowScheduledTransition::delete in includes/Entity/WorkflowScheduledTransition.php
Given a node, delete transitions for it. @deprecated: workflow_delete_workflow_scheduled_transition_by_nid() --> WorkflowScheduledTransition::delete()
workflow_delete_workflow_scheduled_transition_by_nid in ./workflow.deprecated.inc
Given a node, delete transitions for it. @deprecated: workflow_delete_workflow_scheduled_transition_by_nid() --> WorkflowScheduledTransition::delete() It is still used in workflow_execute_transition().
workflow_node_delete in ./workflow.node.inc
Implements hook_node_delete().

File

includes/Entity/WorkflowScheduledTransition.php, line 124
Contains workflow\includes\Entity\WorkflowScheduledTransition.

Class

WorkflowScheduledTransition

Code

public static function deleteByNid($entity_type, $nid) {
  return db_delete('workflow_scheduled_transition')
    ->condition('nid', $nid)
    ->execute();
}