public function StateFlow_Event::validate in State Machine 6
Same name and namespace in other branches
- 7.3 modules/state_flow_entity/plugins/state_flow_entity.inc \StateFlow_Event::validate()
- 7 modules/state_flow/plugins/state_flow.inc \StateFlow_Event::validate()
- 7.2 modules/state_flow/plugins/state_flow.inc \StateFlow_Event::validate()
Validate the transition by processing the guard condition.
Overrides StateMachine_Event::validate
File
- modules/
state_flow/ plugins/ state_flow.inc, line 128
Class
Code
public function validate() {
if (parent::validate()) {
if (!empty($this->options['permission'])) {
return user_access($this->options['permission']);
}
return TRUE;
}
return FALSE;
}