You are here

function workflow_update_workflow_node_stamp in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow.deprecated.inc \workflow_update_workflow_node_stamp()

Given nid, update the new stamp. This probably can be refactored. Called by workflow_execute_transition(). @TODO refactor into a correct insert / update.

1 call to workflow_update_workflow_node_stamp()
WorkflowTransition::execute in includes/Entity/WorkflowTransition.php
Execute a transition (change state of a node). @deprecated: workflow_execute_transition() --> WorkflowTransition::execute().

File

./workflow.module, line 947
Support workflows made up of arbitrary states.

Code

function workflow_update_workflow_node_stamp($nid, $new_stamp) {
  return db_update('workflow_node')
    ->fields(array(
    'stamp' => $new_stamp,
  ))
    ->condition('nid', $nid, '=')
    ->execute();
}