From 6173959542c90a61006f3d62e177425fd7d342a6 Mon Sep 17 00:00:00 2001 From: mzd Date: Tue, 29 Apr 2014 20:45:55 -0400 Subject: [PATCH] make variable naming more accurate --- CRM/Event/Form/ManageEvent/Registration.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index 650b71a73f..48ebae2848 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -339,13 +339,14 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent * @param array &$form * @param int $count unique index * @param string $prefix dom element ID prefix - * @param string $name dom element name + * @param string $label Label * @param array $configs Optional, for addProfileSelector(), defaults to using getProfileSelectorTypes() **/ - function buildMultipleProfileBottom(&$form, $count, $prefix = '', $name = 'Include Profile', $configs = null) { + function buildMultipleProfileBottom(&$form, $count, $prefix = '', $label = 'Include Profile', $configs = null) { extract( ( is_null($configs) ) ? $this->getProfileSelectorTypes() : $configs ); $element = $prefix . "custom_post_id_multiple[$count]"; - $form->addProfileSelector( $element, $name . '
' . ts('(bottom of page)'), $allowCoreTypes, $allowSubTypes, $profileEntitites); + $label .= '
'.ts('(bottom of page)'); + $form->addProfileSelector( $element, $label, $allowCoreTypes, $allowSubTypes, $profileEntitites); } /** -- 2.25.1