You are here

function workflow_update_workflow_node_stamp in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow.module \workflow_update_workflow_node_stamp()

Given nid, update the new stamp. This probably can be refactored. Called by workflow_execute_transition().

@deprecated: this is micro-optimalisation.

File

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

Code

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