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) »
  • hook_civicrm_alterMailParams( &$params )
Pages: [1]

Author Topic: hook_civicrm_alterMailParams( &$params )  (Read 783 times)

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
hook_civicrm_alterMailParams( &$params )
June 16, 2011, 07:41:00 am
Hi,

I need find a way to get the mailing id (mid) from this hook, however it is not included in the &$params, is it possible to get the mailing id from the session data?

Help is much appreciated!

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: hook_civicrm_alterMailParams( &$params )
June 16, 2011, 09:09:42 pm
@changx,

I don't know the direct answer to your question, but you should be aware that this hook is not only called for CiviMail mailings but also for Send Email activities.

You'll need to handle both cases in your logic if it depends on being a CiviMail.

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • hook_civicrm_alterMailParams( &$params )

This forum was archived on 2017-11-26.