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) »
  • CRM_Event_Form_Registration - make $_params public
Pages: [1]

Author Topic: CRM_Event_Form_Registration - make $_params public  (Read 880 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
CRM_Event_Form_Registration - make $_params public
March 05, 2012, 03:33:21 am
Hi,

I was recently writing a module that used hooks to add and validate an element on the CRM_Event_Form_Registration form.

To make it work I changed the $_params field from 'protected' to 'public' (noting that is was public for similar Contribute forms). See patch.

Can this field please be made public?

Ken

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: CRM_Event_Form_Registration - make $_params public
March 05, 2012, 07:18:21 am

An easier option for now might be to use:

$form->getVar( '_params' );

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) »
  • CRM_Event_Form_Registration - make $_params public

This forum was archived on 2017-11-26.