If the user requests www.mysite.com/user/login he should be redirected to www.mysite.com/mylogin. I know this is possible with hook_init or hook_boot, can some one explain how this can be achieved.
Thanks
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this community/**
* Implements hook_init().
*/
function mymodule_init() {
global $base_url;
if (user_is_anonymous() && arg(0) == 'user') {
drupal_goto($base_url . 'mylogin');
}
}