[development] Creating multiple login blocks with different validation rules.

Earnie Boyd earnie at users.sourceforge.net
Thu May 13 12:26:46 UTC 2010

Anth wrote:
> Hi,
> Does anyone have ideas on how to implement the function in the subject?
> Basically I want a page with two login blocks, one for general users and
> one for premium users. I've used multiblock to get the two blocks up
> there but I need the two different blocks to work different for the
> different user types. That is if a general user tries to login on the
> premium login it fails and vice versa. Is there any easy way to do this
> or do I have to recreate my forms manually?

You don't need to start from scratch but you do need to code using 
hook_form_alter to add the appropriate form elements and also a 
hook_user to capture the user operations and operate on the appropriately.

-- http://progw.com
-- http://www.for-my-kids.com

More information about the development mailing list