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) »
  • Modify Action Tokens
Pages: [1]

Author Topic: Modify Action Tokens  (Read 795 times)

Eman0684

  • Guest
Modify Action Tokens
September 22, 2009, 09:06:50 am
I was wondering if and how I could modify the action tokens to include contact first name and last name. Where would I do this?

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: Modify Action Tokens
September 22, 2009, 09:16:44 am

i assume u know that first/last name are already exposed as tokens

You can extend the token system by implementing the tokens and tokenValues hooks:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmtokenValues

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

Eman0684

  • Guest
Re: Modify Action Tokens
September 22, 2009, 10:00:51 am
Yes, I know it exists, but it doesn't work for Headers, Footers and Automated messages, which is what I want.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modify Action Tokens

This forum was archived on 2017-11-26.