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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Token Hooks in Print PDF Letter
Pages: [1]

Author Topic: Token Hooks in Print PDF Letter  (Read 1692 times)

Marty

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 14
    • Boulder County Arts Alliance
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.37
  • PHP version: 5.4.27
Token Hooks in Print PDF Letter
December 19, 2009, 09:03:39 pm
I'm using hook_civicrm_tokens and hook_civicrm_tokenValues to create and replace a new token.  All seems to work fine when sending email to contacts, but token replacement doesn't occur when I use the "Print PDF Letter for Contacts" action.  Standard tokens get replaced properly, but the token I added in hook_civicrm_tokens is replaced with an empty string, and not the value I assigned in hook_civicrm_tokenValues (Drupal 6 and CiviCRM 3.0).

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Token Hooks in Print PDF Letter
December 21, 2009, 01:57:53 am
We have recently fixed this issue for v3.0.2.

related issue might be : http://issues.civicrm.org/jira/browse/CRM-5249

you might want to upgrade CiviCRM to latest stable release : CiviCRM v3.0.3


kiran
You Are Designed To Choose... Defined By Choice.

wnpc

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
Re: Token Hooks in Print PDF Letter
February 27, 2010, 01:44:28 pm
Hi

I'm also getting this problem with civicrm 3.1.3. Any ideas on a fix please

Cheers

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Token Hooks in Print PDF Letter
April 05, 2010, 05:44:24 am
Just submitted this.

http://issues.civicrm.org/jira/browse/CRM-6054

If you are not seeing tokens working you need to be really clear about which action you are using because several sound similar e.g. 'sending pdf letters' could actually be sending pdf letters from the contact search screen or the contribute search screen.

I was trying to deal with the contribute search sending pdf receipts but I think the patch will affect other functions as well.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Token Hooks in Print PDF Letter

This forum was archived on 2017-11-26.