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 CiviEvent (Moderator: Yashodha Chaku) »
  • Simplified Event registration and creation?
Pages: 1 [2]

Author Topic: Simplified Event registration and creation?  (Read 4610 times)

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Simplified Event registration and creation?
December 28, 2008, 04:27:46 pm
So there's no way to alter the data passed to the template - it all has to be hard-coded?  Phooey.

But thanks.

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: Simplified Event registration and creation?
December 28, 2008, 08:24:55 pm
Quote from: lentilsoup on December 28, 2008, 01:35:34 pm
Thanks.  When do people tend to be around on IRC?

In general between india and the US we have round the clock coverage. However due to the holidays, there will be spoaradic coverage till jan 5 and then things should get back to normal

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Simplified Event registration and creation?
December 29, 2008, 06:02:47 pm
Quote from: lentilsoup on December 28, 2008, 04:27:46 pm
So there's no way to alter the data passed to the template - it all has to be hard-coded?  Phooey.

Hmm - not quite what i intended to say. You can potentially alter the underlying php code or implement a CiviCRM buildForm or postProcess hook.

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification
Protect your investment in CiviCRM by  becoming a Member!

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Simplified Event registration and creation?
December 29, 2008, 06:22:09 pm
Ah, awesome.  Not sure why I didn't see the Hooks before.  Thank you!

Is it just me, or are Events not listed among the objects that can be affected by each hook? Is that just undocumented, or are they called something else, or are they simply not hookable?  Ditto for Registrations and Price Sets.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Simplified Event registration and creation?
December 30, 2008, 09:19:33 am
Quote from: lentilsoup on December 29, 2008, 06:22:09 pm
Is it just me, or are Events not listed among the objects that can be affected by each hook? Is that just undocumented, or are they called something else, or are they simply not hookable?  Ditto for Registrations and Price Sets.

Don't know. Either try it out and add to doc (either way) - or wait for someone else to chime in here.
Protect your investment in CiviCRM by  becoming a Member!

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: Simplified Event registration and creation?
December 30, 2008, 09:53:57 am

events does have a hook. Registration is not an object but more of a process and you should use the form hooks for that (buildForm and postProcess).

PriceSet does not have hooks. If you need them, please implement them, and then create an issue along with a patch

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 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Simplified Event registration and creation?

This forum was archived on 2017-11-26.