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) »
  • Adding a hook when a participant confirms event registration.
Pages: [1]

Author Topic: Adding a hook when a participant confirms event registration.  (Read 1384 times)

nrporter

  • Guest
Adding a hook when a participant confirms event registration.
September 24, 2009, 01:40:08 pm
I'm looking to tie an action into when a participant for an event actually completes registration, or confirms a registration for an event. I need to trigger a call to an external app on this action. I was wondering what hook I might use, and where I should hook into. I was thinking of hooking onto the form submit for that particular form, or looking into a civicrm_hook_post use with an update to a participant, assuming a participant is actually updated when they confirm an event registration. Any ideas?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding a hook when a participant confirms event registration.
September 24, 2009, 02:01:28 pm

if u need to tie the action for all registrations, both online and offline, then you should hook into the civicrm_post for the participant object. If only for online registrations you can hook into the civicrm_postProcess for the confirm form

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Adding a hook when a participant confirms event registration.

This forum was archived on 2017-11-26.