User register / edit workflow operation (Paul requested ! :-)

Author Message

Lex 007

Tuesday 22 February 2005 3:10:07 am

Hello,

In the website I am building, the users can create accounts with several parameters such as :
- country
- age
- etc etc ...

According to the data they put in, I would like the users to belong automatically to several groups. For instance, users from France, Germany, etc ... would belong to the users group "Europe". The users over 21 would belong to the users group "Over 21 years old".

The change of group should be approved by an administrator. (Could I do that with a multiplexer event ?)

So here are my questions :

- I saw that Paul (Borgermans ? Forsyth ?) wrote a "user_register" workflow operation. I find it really hard to figure out how to write a new trigger ... Could you post the code so that I could modify it for my needs or help me to write it ?

- Is there a PHP function in the code to assign a user to one or several groups directly ? (I could't find it in the code)

Thank you Paul and all the others :-)

Alexandre

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.