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) »
  • quick disable from list doesn't call hook
Pages: [1]

Author Topic: quick disable from list doesn't call hook  (Read 1487 times)

andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
quick disable from list doesn't call hook
February 04, 2010, 09:46:21 am
I have a custom module that uses hook_civicrm_post to set a tag based upon a contact having a certain type of relationship.  The tag is added if the relationship is active, and the tag is removed if the relationship is disabled or deleted so long as there isn't another active relationship of the same type.

Everything works fine when the relationship is created or edited, and it works if you go to edit the relationship and disable it or enable it using the check box.  In addition, deleting the relationship using the "More>" link works fine.  However, when disabling or enabling the relationship using the "More>" link, nothing happens.  It seems as if that quick disable/enable doesn't call the hook.

I'm using 3.1.1 on Drupal 6.15.
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: quick disable from list doesn't call hook
February 04, 2010, 09:53:01 am
Quote
It seems as if that quick disable/enable doesn't call the hook.

Right. Hooks are not called during enable/disable. Can you file an issue for this.

Kurund
Found this reply helpful? Support CiviCRM

andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
Re: quick disable from list doesn't call hook
February 04, 2010, 10:10:46 am
I filed CRM-5773, thanks:
http://issues.civicrm.org/jira/browse/CRM-5773
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • quick disable from list doesn't call hook

This forum was archived on 2017-11-26.