Add proper hooks

Dave Reid - November 4, 2009 - 00:21
Project:Path redirect
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Dave Reid
Status:active
Description

We should add a few hooks into the module to allow people to alter and react to redirections. I'm thinking about:

path_redirect_alter($redirect) -> alter a redirect before saving to the database
path_redirect_redirect($redirect) -> invoked right before performing redirection action

#1

andypost - November 4, 2009 - 02:22

Suppose you mean hook_path_redirect_presave & hook_path_redirect_redirect - looks like over- engineering

Maybe better leave drupal_alter's way just after load?

 
 

Drupal is a registered trademark of Dries Buytaert.