You are here

Redirect API Hooks in Redirect 7.2

Same name and namespace in other branches
  1. 8 redirect.api.php \redirect_api_hooks
  2. 7 redirect.api.php \redirect_api_hooks

During redirect operations (create, update, view, delete, etc.), there are several sets of hooks that get invoked to allow modules to modify the redirect operation:

  • All-module hooks: Generic hooks for "redirect" operations. These are always invoked on all modules.
  • Entity hooks: Generic hooks for "entity" operations. These are always invoked on all modules.

Here is a list of the redirect and entity hooks that are invoked, and other steps that take place during redirect operations:

File

./redirect.api.php, line 8
Hooks provided by the Redirect module.

Functions

Namesort descending Location Description
hook_redirect_access ./redirect.api.php Control access to a redirect.
hook_redirect_alter ./redirect.api.php Act on a redirect being redirected.
hook_redirect_delete ./redirect.api.php Respond to redirect deletion.
hook_redirect_hash_alter ./redirect.api.php Alter the hash of a redirect.
hook_redirect_insert ./redirect.api.php Respond to creation of a new redirect.
hook_redirect_load_alter ./redirect.api.php Act on redirects being loaded from the database.
hook_redirect_load_by_source_alter ./redirect.api.php Alter the list of redirects matching a certain source.
hook_redirect_prepare ./redirect.api.php Act on a redirect object about to be shown on the add/edit form.
hook_redirect_presave ./redirect.api.php Act on a redirect being inserted or updated.
hook_redirect_update ./redirect.api.php Respond to updates to a redirect.
hook_redirect_validate ./redirect.api.php Perform redirect validation before a redirect is created or updated.