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 alterMailParams not called from civimail
Pages: [1]

Author Topic: Hook alterMailParams not called from civimail  (Read 1359 times)

goran

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 3
Hook alterMailParams not called from civimail
March 15, 2010, 04:28:16 am
I have been trying to write a function that'll hook alterMailParams but had problems with it.
Deepaks kindly helped me on irc to establish that
a) this hook is not called from civimail
b) that there are issues
http://issues.civicrm.org/jira/browse/CRM-4542
(http://issues.civicrm.org/jira/browse/CRM-5734, according to jkiran)
with bin/scripts - which would then apply to standard way civimail functions are called

As for the use case, I am trying to attach different attachments to the mailing based on some parameters.
Also, generally, if alterMailParams is a useful hook, then it is n times more useful in civimail :)

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 alterMailParams not called from civimail
March 15, 2010, 08:12:04 am

with regard to your points below:

a. is a bug and should be fixed in 3.1 (if easy, else 3.2). Please confirm this bug (via q=civicrm/mailing/queue) and if confirmed, file an issue.

b. all cron scripts within drupal should bootstrap drupal so hooks can be called. this should be fixed for 3.2. I've moved CRM-5734 to 3.2

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

goran

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 3
Re: Hook alterMailParams not called from civimail
March 15, 2010, 10:54:58 am
http://issues.civicrm.org/jira/browse/CRM-5958

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Hook alterMailParams not called from civimail

This forum was archived on 2017-11-26.