X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fredirect%2Fredirect.api.php;fp=web%2Fmodules%2Fcontrib%2Fredirect%2Fredirect.api.php;h=9ec1bdff7d4b2f7c394de2aab00247e700577a76;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/redirect/redirect.api.php b/web/modules/contrib/redirect/redirect.api.php new file mode 100644 index 000000000..9ec1bdff7 --- /dev/null +++ b/web/modules/contrib/redirect/redirect.api.php @@ -0,0 +1,142 @@ + $redirect) { + if ($redirect->source !== $source) { + // If the redirects to do not exactly match $source (e.g. case + // insensitive matches), then remove them from the results. + unset($redirects[$rid]); + } + } +} + +/** + * Act on a redirect object about to be shown on the add/edit form. + * + * This hook is invoked from redirect_create(). + * + * @param $redirect + * The redirect that is about to be shown on the add/edit form. + * + * @ingroup redirect_api_hooks + */ +function hook_redirect_prepare($redirect) { + +} + +/** + * Act on a redirect being redirected. + * + * This hook is invoked from redirect_redirect() before the redirect callback + * is invoked. + * + * @param $redirect + * The redirect that is being used for the redirect. + * + * @see redirect_redirect() + * @see drupal_page_is_cacheable() + * @ingroup redirect_api_hooks + */ +function hook_redirect_alter($redirect) { +} + +/** + * @} End of "addtogroup hooks". + */