Hello,

Sorry, I do not know what is the correct way to upload a module, so if you would like to move this to the correct place I would appreciate that.

This module is an action that allows the user to use workflows to change the taxonomy term related to the node. If is a very quick hack and I would like any programmers to make it better.

Limitations are that a term description can only be used once, so if the there are two terms called 'my term', you can only select one of them. So to use this module all terms should be unique. If you are using hierarchy, then I have put the root term in front of the term as so:

term1
-- term1 type1
-- term1 type2
term2
-- term2 type1
-- term2 type2
etc

Also, I do not know Drupal enough to program cleanly, so I just use a SQL UPDATE statement to push the value of tid into the term_node table. Maybe this is not best way to do this.

Finally, why do this? Well, I want to be able to manage user permission automagically with Workflow. Using this action you can have user 1 who has permission to content under term 1. Now user 2 might be an authenticator, so he can select approve in the workflow and the document is moved from a term where user 1 does not have access into a term where user 1 does have access.

Thanks.

CommentFileSizeAuthor
taxonomy_actions.module_0.txt2 KBKieg Khan

Comments

Arto’s picture

Status: Active » Closed (fixed)

It is not very useful for anyone else to upload this module to the project repository, as you wouldn't be able to update it without a CVS account.

To get your module published, please read the developer handbook and apply for a CVS account. After that, you can add experimental modules like this to your own sandbox area in the CVS repository, and publish them in the global projects list once they mature.

In the meantime, if you would like constructive critique and suggestions on your module, I suggest re-posting this to the module development forum.

Kieg Khan’s picture

Hello Arto,

Thank you for the advice.

Bye.