function state_flow_get_revisions in State Machine 7
Same name and namespace in other branches
- 7.2 modules/state_flow/state_flow.module \state_flow_get_revisions()
Helper function to return all node_revision_states records for a node.
1 call to state_flow_get_revisions()
- state_flow_events in modules/
state_flow/ state_flow.pages.inc - Page callback for a node's Workflow page.
File
- modules/
state_flow/ state_flow.module, line 459 - An implementation of node revision workflow for Drupal based on the State Machine system.
Code
function state_flow_get_revisions($nid) {
$revisions = db_query('
SELECT *
FROM {node_revision_states}
WHERE nid = :nid
ORDER BY vid DESC', array(
':nid' => $nid,
))
->fetchAll();
return $revisions;
}