You are here

function workflow_transition_load in Workflow 7.2

Load function belonging to the menu option 'workflow-comment/%'.

Maps to this function just like 'node/%node' maps to node_load().

Parameters

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

Return value

WorkflowTransition object representing one row from the {workflow_node_history} table.

1 call to workflow_transition_load()
WorkflowTransitionForm::getTransition in includes/Form/WorkflowTransitionForm.php
Extract WorkflowTransition or WorkflowScheduledTransition from the form.

File

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

Code

function workflow_transition_load($hid) {
  return entity_load_single('WorkflowTransition', $hid);
}