Hot to customize user registration form
Customizing the user registration form
Last modified: August 26, 2009 - 03:02
description
These snippets allow you to override the default user registration layout using a custom user_register.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 (remembering to omit the opening and closing PHP tags if you're adding it to an existing template.php file, i.e. <?php and ?).
<?php
/**
* This snippet catches the default login form and looks for an
* user_register.tpl.php file in the theme folder
*/
function phptemplate_user_register($form) {
return _phptemplate_callback('user_register', array('form' => $form));
}
?>step 2 of 2
- In a text editor create a new text file and paste the following snippet into it. Save the file with the filename user_register.tpl.php
- Edit the style sheet classes and content to suit
- Upload your edited user_register.tpl.php to your active theme folder
For use with Drupal 4.7.x
» 5 comments · Read more
