This seems to be a duplicate (albeit earlier) page
Please see http://drupal.org/node/350634 which is more recent and more accurate.
Description
These snippets allow you to override the default login layout using a custom user_login.tpl.php
.
If you want to customize the full page layout, click through to the Customizing the login, registration and request password full page layout handbook page.
Step 1 of 2
In a text editor like notepad.exe, create a file called template.php using the the following snippet. If you already have a template.php file, simply add it to your existing one.
For use with Drupal 4.7.x and Drupal 5.x
<?php
/**
* This snippet catches the default login form and looks for an
* user_login.tpl.php file in the theme folder
*/
function phptemplate_user_login($form) {
return _phptemplate_callback('user_login', array('form' => $form));
}
?>
For use with Drupal 6.x
_phptemplate_callback
is deprecated in Drupal 6 in favor of the theme registry and preprocess functions. See the Drupal 6 theme guide for more information.
<?php
function mytheme_theme(&$existing, $type, $theme, $path) {
$hooks['user_login'] = array(