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) »
  • Create New Hook for Price Sets
Pages: [1]

Author Topic: Create New Hook for Price Sets  (Read 830 times)

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Create New Hook for Price Sets
September 08, 2010, 09:50:42 am
I am considering creating a new hook for price sets similar to the buildAmount hook, but before I commit to that path I was wondering if anyone could provide insight into what would be required.

I looked at the Torrenware site which provides a great head start on creating a new hook. Right now, I just don't know where to implement the hook.

A little poking around lead me to CRM\Price\BAO\Set.php and the buildPriceSet function. It looks like this would be the perfect  place to modify the price set structure before the form is created. Is this the best place to do it?

I feel like I might be over simplifying the process, so I am ready to be corrected.

Thanks
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Create New Hook for Price Sets

This forum was archived on 2017-11-26.