Hooks

Listeners are registered with Hook::listen($action, $name, $callback, $priority) (usually in your init.php) and run by ascending priority. Each callback receives the payload returned by the previous one, so always return the payload: a callback that returns nothing hands null to the next listeners. An exception or error thrown in a listener is logged and the payload is restored as it was before that listener.

Editor admin

Customer App

Modules

System