$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". */