Let the platform do the work

Application Hooks

Application hooks execute logic when working with the global application.

Topics

The after_entry_point application hook executes at the start of every request.
The after_load_user hook executes after the current user is set for the current request. It handles actions that are dependent on the current user, such as setting ACLs or configuring user-dependent parameters.
The after_session_start hook executes before the user's session starts, but after the user's visibility rules have been set up and the after_load_user logic hook has executed.
The after_ui_frame hook executes after the frame has been invoked and before the footer has been invoked for modules in backward compatibility mode. This logic hook has been deprecated and will be removed in a future release.
The entry_point_variables_setting application hook executes at the start of every entry point.
The handle_exception logic hook executes when an exception is thrown.
Executes at the end of every page.