Has anyone come up with a way to have child terms of a term get automatically flagged when the parent term gets flagged?

I am thinking the most probably way is to write a PHP script and add that to a Rule so that when a term gets flagged all the child terms get flagged.

Comments

tayzlor’s picture

@mkinnan - I would think you could probably write a Rule action (http://drupal.org/project/rules) using the rules API to do what you describe

tayzlor’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Have you found a solution? Can you share it?

fadgadget’s picture

high ive been trying to do this with rules all day and i cant see how it could be possible to do with Rules. There is no action available to flag subterms etc. If anyone has a solution it would be appreciated.

mkinnan’s picture

It has been awhile, but I think I did this using rules and a custom PHP script. When a term gets flagged, the rule gets implemented which executes my PHP script. The PHP script then searches for the child terms, and a database query makes the changes such that the user has now flagged those terms.