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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Hook Specification
Pages: [1]

Author Topic: Hook Specification  (Read 1213 times)

yamba

  • Guest
Hook Specification
February 04, 2008, 05:13:25 pm
CiviCRM 1.9 / Drupal

First, I want to say that the Hook.php is THE solution for the major part of the custom work I was required to do (combined with some custom templates).

That being said, before modifying code else where in the application, I wanted to verify the following detail.  When I delete objects (as contributions or memberships),  the hook doesn't seem t be called. 

I verified in the /BAO code for Membership (Membership.php) and Contribution (Contribution.php) and the delete functions don't include the Hook.php.

Was there a reason to not include the hook?

In the specification, there is no mention regarding this detail:
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

Thanks

jystewart

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: Hook Specification
March 04, 2008, 02:44:32 am
I've just run into this too. My client wants various actions performed when a contact is deleted, so the hook would be very handy.

Is a delete hook in the works/in 2.0? If not, does anyone have a ready-made patch for it or do I need to start digging in to see where to add it?

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Hook Specification
March 04, 2008, 07:15:14 am
Hey,

This is a bug (http://issues.civicrm.org/jira/browse/CRM-2762) and was fixed for 2.0.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Hook Specification

This forum was archived on 2017-11-26.