Is there such an action wich changes the user role on workflow change?
in my site i use a content type as an applycation form for a certain "membership", then the administrator should be able to aprove or not this applycation. up to there, workflow is enough, but i need that when the administrator aproves (changes the workflow to aproved) the user who filled that aplication is automatically assign a role.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | user_action.tar_.gz | 1.35 KB | shenzhuxi |
Comments
Comment #1
JacobSingh commentedYou can try out my workflow / workflow-ng integration. workflow-ng may have an action to handle upgrgades of user rules. If not, I'm sure someone would be into building one.
Workflow-ng is a really good rules engine and workflow is basically just a state machine at this point. The actions module is good for basic stuff, but workflow-ng can do a lot more. So I wrote something to integrate the two. It's in the contrib directory of workflow.
Best,
Jacob
Comment #2
leanazulyoro commentedThanks jacob, workflow-ng is exactly what i needed and MUCH more! this module should be included in the drupal core definetly
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
kenorb commentedAny solution of assign/unassign roles to the user in Drupal 6.x?
Comment #5
kenorb commentedComment #6
joshmillerYou could try http://drupal.org/project/rules for workflow-ng support for Drupal 6.x
Comment #7
avpadernoThe support request was for the 5.x-1.2 version, not for Drupal 6.
If you want to know about Drupal 6, open a different support request.
Comment #8
shenzhuxi commentedTry this Module. You can easily add actions to control user's role.
I didn't follow the naming space rule of drupal, because I think something like this should be patched to the core user.module.
Please ignore the Chinese comment in the code.
Comment #9
avpadernoComment #10
shenzhuxi commentedBetter solution
http://drupal.org/node/514348