You are here

public function StateFlow::existing_revision in State Machine 6

Same name and namespace in other branches
  1. 7 modules/state_flow/plugins/state_flow.inc \StateFlow::existing_revision()
  2. 7.2 modules/state_flow/plugins/state_flow.inc \StateFlow::existing_revision()
1 call to StateFlow::existing_revision()
StateFlow::persist in modules/state_flow/plugins/state_flow.inc
Persist the current state to the object storage.

File

modules/state_flow/plugins/state_flow.inc, line 97

Class

StateFlow

Code

public function existing_revision($nid, $vid) {
  $result = db_result(db_query('SELECT COUNT(*) FROM {node_revision_states} WHERE nid = %d AND vid = %d', $nid, $vid));
  return $result ? TRUE : FALSE;
}