public function StateFlow::existing_revision in State Machine 6
Same name and namespace in other branches
- 7 modules/state_flow/plugins/state_flow.inc \StateFlow::existing_revision()
- 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
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;
}