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) »
  • Multiple Modules Affecting A Single Form
Pages: [1]

Author Topic: Multiple Modules Affecting A Single Form  (Read 566 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
Multiple Modules Affecting A Single Form
October 15, 2010, 11:36:56 am
I am working on a few modules that I hope to release soon. Two of them affect the event registration form. Because of the way the template override system works it seems difficult to have multiple modules tweaking a single form.

Just to clarify - I don't want to change the form for a single event, I want to add stuff to the default event registration form that would be available for every event.

With Drupal we have hook_form_alter. I can add items to a form using the buildForm hook, but I still have to alter the .tpl file for display.

Has anyone encountered this before? If I understand correctly, doesn't this limit some of the extensibility of CiviCRM.
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

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: Multiple Modules Affecting A Single Form
October 15, 2010, 01:34:49 pm

yes, this is a known issue and does limit the extensibility of CiviCRM

i'm not sure of a good / easy workaround for this, but will think about it. i suspect there is a solution, we just need to figure out where and how :)

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) »
  • Multiple Modules Affecting A Single Form

This forum was archived on 2017-11-26.