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.

CommentFileSizeAuthor
#8 user_action.tar_.gz1.35 KBshenzhuxi

Comments

JacobSingh’s picture

You 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

leanazulyoro’s picture

Status: Active » Fixed

Thanks jacob, workflow-ng is exactly what i needed and MUCH more! this module should be included in the drupal core definetly

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

kenorb’s picture

Any solution of assign/unassign roles to the user in Drupal 6.x?

kenorb’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)
joshmiller’s picture

You could try http://drupal.org/project/rules for workflow-ng support for Drupal 6.x

avpaderno’s picture

Title: assign/unassign roles to user on workflow change » Assign/unassign roles on workflow change
Status: Postponed (maintainer needs more info) » Closed (fixed)

The 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.

shenzhuxi’s picture

Version: 5.x-1.2 » 6.x-1.x-dev
StatusFileSize
new1.35 KB

Try 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.

avpaderno’s picture

Version: 6.x-1.x-dev » 5.x-1.2
shenzhuxi’s picture