You are here

public function StateMachine_State::on_exit in State Machine 6

Same name and namespace in other branches
  1. 7.3 inc/base.inc \StateMachine_State::on_exit()
  2. 7 inc/base.inc \StateMachine_State::on_exit()
  3. 7.2 inc/base.inc \StateMachine_State::on_exit()

Called when exiting out of this state.

File

inc/base.inc, line 228

Class

StateMachine_State

Code

public function on_exit() {
  $args = func_get_args();
  if (!empty($this->options['on_exit'])) {
    call_user_func_array($this->options['on_exit'], $args);
  }
}