You are here

public function StateFlow::get_latest_revision in State Machine 6

Same name and namespace in other branches
  1. 7 modules/state_flow/plugins/state_flow.inc \StateFlow::get_latest_revision()
  2. 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

StateFlow

Code

public function get_latest_revision($nid) {
  $result = db_result(db_query('SELECT MAX(vid) FROM {node_revisions} WHERE nid = %d', $nid));
  return $result;
}