Theming the User Registration Form in Drupal 6 | Trellon - 0 views
-
<?phpfunction themename_theme($existing, $type, $theme, $path) { return array( ... // tell Drupal what template to use for the user register form 'user_register' => array( 'arguments' => array('form' => NULL), 'template' => 'user-register', // this is the name of the template ), ... );}?>
-
<div id="registration_form"> <div class="field"> <?php print drupal_render($form['account']['name']); // prints the username field ?> </div> <div class="field"> <?php print drupal_render($form['account']['pass']); // print the password field ?> </div> <div class="field"> <?php print drupal_render($form['submit']); // print the submit button ?> </div> </div></div>
-
<?php print '<pre>'; print var_export($form); print '</pre>';?>
- ...3 more annotations...