public function StateFlow::get_latest_revision in State Machine 6
Same name and namespace in other branches
- 7 modules/state_flow/plugins/state_flow.inc \StateFlow::get_latest_revision()
- 7.2 modules/state_flow/plugins/state_flow.inc \StateFlow::get_latest_revision()
4 calls to StateFlow::get_latest_revision()
- StateFlow::latest_state in modules/
state_flow/ plugins/ state_flow.inc - StateFlow::persist in modules/
state_flow/ plugins/ state_flow.inc - Persist the current state to the object storage.
- StateFlow::set_node_revision in modules/
state_flow/ plugins/ state_flow.inc - StateFlow::set_principle_revision in modules/
state_flow/ plugins/ state_flow.inc
File
- modules/
state_flow/ plugins/ state_flow.inc, line 92
Class
Code
public function get_latest_revision($nid) {
$result = db_result(db_query('SELECT MAX(vid) FROM {node_revisions} WHERE nid = %d', $nid));
return $result;
}