I want to create a custom event that will be invoked when a user tags a piece of content (using Community Tags). The event can then be used with the rules module to trigger other actions. Anyone have any insight into how to code this? Thanks.

Comments

sbefort’s picture

Here is the documentation for creating custom events with rules. I'm currently creating a custom event for another module.

Inside the community_tags module, create a new file called community_tags.rules.inc. The Rules module will automatically find this file. Write your custom event code here.