CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • hook for mail tokens
Pages: [1]

Author Topic: hook for mail tokens  (Read 1050 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
hook for mail tokens
December 18, 2010, 10:12:10 pm
I would like to use the mail tokens hook to create new tokens related to the event. For example: After a person does a "Find Participants" search, they should have the ability to compose an email to those participants, with tokens for the event name, event time, and other event-specific information.   

But within the hook, I only have access to the contact ids, not the event that was searched on. Any ideas on what I am missing?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: hook for mail tokens
December 19, 2010, 06:24:30 am

The mail code is not aware of the context of the mailing. We'll need to fix that issue and expose more of the "context" to the tokens. I suspect its a 20-40 hour project to go in and improve that aspect. Would be very useful indeed.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • hook for mail tokens

This forum was archived on 2017-11-26.