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) »
  • Do we have to use PRE hook for deletes instead of POST
Pages: [1]

Author Topic: Do we have to use PRE hook for deletes instead of POST  (Read 552 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Do we have to use PRE hook for deletes instead of POST
July 05, 2011, 02:22:53 am
Hi,

I seem to keep hitting the problem of wanting extra information about an entity that has just been deleted.

Is the only way to deal with this to use the PRE hook? I guess it always gets deleted so it's safe enough?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Do we have to use PRE hook for deletes instead of POST
July 05, 2011, 02:25:28 am
Yes, pre hook would seems to be good option.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Do we have to use PRE hook for deletes instead of POST

This forum was archived on 2017-11-26.