By netentropy on
I have built a really nice login / registration page but I have found that there are some links that will alway redirect back to the core user login page.
For instance, when anonymous users are asked to login to comment, that directs to the core login
or when in ubercart or other modules ask you to login in it always goes to the core login.
Is there a function I can use in template.php that basically changes all login links to my custom login page?
I don't really want to do a redirect but actually just the destination of these links.
I know how to do it with forms, but I do not see how to do it with the mentioned comment links.
Comments
With Drupal it is more proper
With Drupal it is more proper to use hook_form_alter() and/or theming to change the login form
yes i do this but how do you
yes i do this but how do you do the things that are not forms such as the Login or register to comment links
The point is, if you use
The point is, if you use hook_form_alter() and/or theming to change the login form then the login form is at it's default url and there is no need to change the links.
i appreciate your response. I
i appreciate your response.
I have a duel registration / login page built in panels. i don't need to modify the form, i need to to modify the links leading to the form.
in other words, i do not want or desire my url to login / register to be /user but /login and I need all urls that use destination = user whatever to go to destination = login