code comments
authoreileen <emcnaughton@wikimedia.org>
Tue, 24 Nov 2015 03:58:56 +0000 (16:58 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 24 Nov 2015 03:58:56 +0000 (16:58 +1300)
CRM/Event/Form/Registration/Register.php

index 78ed0807c90a6631c9de5ffaeb66db5fa55fda4d..89c6f573ed7e27785830990247547331051d3665 100644 (file)
@@ -1065,9 +1065,12 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
         $payment = $this->_paymentProcessor['object'];
         $payment->setBaseReturnUrl('civicrm/event/register');
       }
-      // default mode is direct
+
+      // ContributeMode is a deprecated concept. It is short-hand for a bunch of
+      // assumptions we are working to remove.
       $this->set('contributeMode', 'direct');
 
+      // This code is duplicated multiple places and should be consolidated.
       if (isset($params["state_province_id-{$this->_bltID}"]) &&
         $params["state_province_id-{$this->_bltID}"]
       ) {