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 for enabling/disabling an event?
Pages: [1]

Author Topic: Hook for enabling/disabling an event?  (Read 546 times)

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Hook for enabling/disabling an event?
August 01, 2012, 02:58:06 pm
I need to fire off actions when an event is either enabled or disabled, but it doesn't look like any of the hooks are getting called.

Which hook gets called when an event is enabled or disabled?

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Hook for enabling/disabling an event?
August 01, 2012, 05:40:29 pm
Just to update for anyone else with this problem:

There is a currently un/underdocumented hook _civicrm_enableDisable($recordBAO, $recordID, $isActive) that fires when the AJAX for the enable/disable menu item fires. This was exactly what I needed.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Hook for enabling/disabling an event?

This forum was archived on 2017-11-26.