Conditional registration event

benbeek 28 Nov, 2013
I use a set of forms. In the 3th form user info is asked (name, email, ...).
I know whether this user is already registered, then info is filled in the form->data fields and hidden field form->data['uid'] is set to the userid.
If this user is not already registered the fields are not filled and form->data['uid'] is set to '0'.
After submit I want to:
(1) update user information is the user is already registered, or
(2) create a new user if the user is not registered ( form->data['uid'] == 0 )

The problem is that I cannot figure out how to only fire the joomla registration event when form->data['uid'] == 0. Can I make this event in any way conditional?

Ben.
This topic is locked and no more replies can be posted.