public function StateMachine_Event::execute in State Machine 7
Same name and namespace in other branches
- 6 inc/base.inc \StateMachine_Event::execute()
- 7.3 inc/base.inc \StateMachine_Event::execute()
- 7.2 inc/base.inc \StateMachine_Event::execute()
Execute the event.
File
Class
Code
public function execute() {
if (!$this
->validate()) {
return FALSE;
}
if (!empty($this->options['before_transition'])) {
call_user_func($this->options['before_transition']);
}
return $this->options['target'];
}