Currently to login as an admin I need to navigate to the URL
http://drupal.mysite.com/user and then I am logging in with userid admin.
I want to change the
user part of the URL to my own custom URL containing
customadmin, so that I can navigate to my login page with URL
http://drupal.mysite.com/customadmin (instead of URL
I know there are some core file that can be changed to do this, like:
I.e by modifying the hook menu for login like so:
/** * Custom menu for login */ $items['customadmin'] = array( 'title' => 'User account', 'title callback' => 'user_menu_title', 'page callback' => 'user_page', 'access callback' => TRUE, 'file' => 'user.pages.inc', 'weight' => -10, 'menu_name' => 'user-menu', );
But I wonder if there is some other way to do this (instead of making changes in core files, which is not recommended of course).