Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By dblado on
Hi,
I am trying to theme the user registration page (username, email, submit...www.mysite/user/register) and was hoping to create a thread on themeing the user reg page w/out re-writing the user.module hook for displaying the form.
Any ideas?
Comments
With 47 and with the new
With 47 and with the new Form API you can make and change forms very flexibly.
Try to change user form with hook_form_alter!
I heard that..
I have seen on somepost that with new form API we can theme forms.
Any examples whould be better.
Sunny
www.gleez.com
API says it is possible
but w/out distinct div / id tags, it will be difficult to theme...
I'm looking to theme only the user reg page form at this point, so was thinking that what I should do is mod user.module to prefix form id elements w/ ur (user registration) so that in my style.css I can reference them w/out harming other form elements.
Same as overriding other theme functions
The concept is the same as theming the profile page, you provide an override stub for the theme function in your template.php and then call it in your page.tpl.php or wherever. You might have to look up the correct functions in drupaldocs or go through the module to find the correct functions to override...
http://drupal.org/node/11811