what should you do if you're me.

I want to create login form with role option, something like:

username
login
role = manager, employee, freelancer (using combo box)

modifying the current one?

Comments

mdixoncm’s picture

You can modify any form you need by implementing the hook_form_alter http://api.drupal.org/api/5/function/hook_form_alter

Although I am not sure why you would want to put the user's role into the login form - surely the username will be tied into the users role? Or are you planning on redirecting the user to different portions of the site depending on the option they select in the login box?

Like books? Check out booktribes the new (Drupal based) community for book lovers
from Computerminds

zho’s picture

oh, ic...

i want to make the clone of my universities website, it looks like that...user can select role, student, or lecturer...

my idea, i want to make it similar based on drupal....

since u said like that i think it's useless...

i think, i should read more about Module Developer Guide
btw thx for the answer...

regards,

Drupal's Newbie :P

kkkk’s picture

I think this concept is good for when you create an account - and later you can edit your role as part of your profile. It's not a login option, it's a user profile thing, and could be useful
You will need some extension, maybe the profile module (guessing, haven't tried)