In this first tutorial, you will learn how to:
- override the default presentation of the user login form, and create a custom template for it.
- pass an editable node into the user login form
- alter the form’s values (such as text, and instructions)
- make the form available to page.tpl.php — as though it was something as simple as a footer.
Moreover, I will show you how bloody simple it is. Folks who follow this tutorial should already have:
- knowledge of PHP
- the ability to lie about a lack of knowledge of PHP
- some familiarity of the kindergarden basics of drupal theming
- Be working with drupal 4.7+
Step One: Override the deafult user login form
Overriding is always done in the theme’s template.php file (if you don’t have a template.php file, you may create a it now). Obviously, before you can override anything, you must first locate what you are trying to override. The best way to do this is to search a module for the $form variable.