You are here

function workflow_state_transition_record_load in Workflow Extensions 7

Same name and namespace in other branches
  1. 6 workflow_extensions.module \workflow_state_transition_record_load()

Load function belonging to the above menu option 'workflow-log/%workflow-state-transition-record'. Maps to this function just like 'node/%node' maps to node_load().

Parameters

$hid: The ID of the workflow state transition record to load.

Return value

object representing one row from the {workflow_node_history} table

File

./workflow_extensions.module, line 102
UI-related improvements to the Workflow module and tokens for Rules.

Code

function workflow_state_transition_record_load($hid) {
  $result = db_query('SELECT * FROM {workflow_node_history} WHERE hid = :hid', array(
    ':hid' => $hid,
  ));
  $workflow_state_transition_record = $result
    ->fetchObject();
  return $workflow_state_transition_record;
}