You are here

public function StateFlow::existing_revision in State Machine 7.2

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

Class

StateFlow

Code

public function existing_revision($nid, $vid) {
  $result = db_select('node_revision_states', 'nrs')
    ->fields('nrs')
    ->condition('vid', $vid)
    ->countQuery()
    ->execute()
    ->fetchAll();
  return $result[0]->expression ? TRUE : FALSE;
}