$form->controller = new CRM_Event_Cart_Controller_Checkout();
break;
+ case 'CRM_Event_Form_Registration_Register':
+ $form->controller = $this->formController = new CRM_Event_Controller_Registration();
+ break;
+
case 'CRM_Event_Form_Registration_Confirm':
- $form->controller = new CRM_Event_Controller_Registration();
+ case 'CRM_Event_Form_Registration_AdditionalParticipant':
+ if ($this->formController) {
+ // Add to the existing form controller.
+ $form->controller = $this->formController;
+ }
+ else {
+ $form->controller = $this->formController = new CRM_Event_Controller_Registration();
+ }
break;
+ case 'CRM_Contribute_Form_Contribution_Confirm':
+ $form->controller = new CRM_Contribute_Controller_Contribution();
+ $form->controller->setStateMachine(new CRM_Contribute_StateMachine_Contribution($form->controller));
+ // The submitted values are on the Main form.
+ $_SESSION['_' . $form->controller->_name . '_container']['values']['Main'] = $formValues;
+ return $form;
+
case 'CRM_Contact_Import_Form_DataSource':
case 'CRM_Contact_Import_Form_MapField':
case 'CRM_Contact_Import_Form_Preview':