Created on 30 September 2010, about 15 years ago
Updated 29 October 2025, 6 days ago

Hi

One of my modules calls module_invoke_all(hook, my_op, context) when an activity occurs, which leads to add an activity record successfully. Here I've used hook_activity_info() and token module hooks.

How I can send some data (in my case it is number of user points gained for the activity) with module_invoke_all() as it replaces a token. Now the token appears in the message templates creation page, under my own section, but I have trouble in passing a value to the token.

I tried with a context parameter element but failed.

Please help.

💬 Support request
Status

Closed: outdated

Version

2.0

Component

Miscellaneous

Created by

🇱🇰Sri Lanka tharaka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024