public function StateFlow::on_event_fail in State Machine 7.2
Method to be called when firing an event fails for any reason.
Overrides StateMachine::on_event_fail
1 call to StateFlow::on_event_fail()
- StateFlow::fire_event in modules/
state_flow/ plugins/ state_flow.inc - Extending fire_event() from state_machine's base.inc to add uid and log arguments.
File
- modules/
state_flow/ plugins/ state_flow.inc, line 411
Class
Code
public function on_event_fail($event) {
$key = array_search($event, $this->events);
drupal_set_message(t('Could not transition node using %event event.', array(
'%event' => $key,
)), 'error');
}