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_summary is only getting called once
Pages: [1]

Author Topic: hook_civicrm_summary is only getting called once  (Read 572 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_civicrm_summary is only getting called once
August 22, 2012, 08:31:21 pm
I have implemented the hook "civicrm_summary( $contactID, &$content, &$contentPlacement )" in two different Drupal6 modules. But only one hook's content gets added to the screen. If I comment out that hook in either module, then the hook will get called in the other module, and the expected content is added.

Any ideas on how to get the extra content from both modules to work? Putting it in one module did not help. 
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: hook_civicrm_summary is only getting called once
August 23, 2012, 11:29:09 am
Quote from: Sarah Gladstone on August 22, 2012, 08:31:21 pm
Any ideas on how to get the extra content from both modules to work? Putting it in one module did not help.

I have no idea why it's not working, but you could do perhaps run
module_invoke_all in the one module that does get called. :)

Bit of a hack, but if it works...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • hook_civicrm_summary is only getting called once

This forum was archived on 2017-11-26.