X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FManagePremiums.php;h=3d9159993366cc061d3b206732a96382a64fa5f2;hb=d44c681d9105af668449d16d9f53832d7982f47e;hp=0787a131b656d05b855bcc95741f975694d51c69;hpb=2340eec651f3de2bc38a14dae5f32f9876af5a7e;p=civicrm-core.git diff --git a/CRM/Contribute/Form/ManagePremiums.php b/CRM/Contribute/Form/ManagePremiums.php index 0787a131b6..3d91599933 100644 --- a/CRM/Contribute/Form/ManagePremiums.php +++ b/CRM/Contribute/Form/ManagePremiums.php @@ -40,7 +40,7 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { /** - * Function to pre process the form + * pre process the form * * @access public * @@ -51,7 +51,7 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { } /** - * This function sets the default values for the form. Manage Premiums that in edit/view mode + * Set default values for the form. Manage Premiums that in edit/view mode * the default values are retrieved from the database * * @access public @@ -87,42 +87,21 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { } /** - * Function to build the form + * Build the form object * * @return void * @access public */ public function buildQuickForm() { - //parent::buildQuickForm( ); + parent::buildQuickForm( ); + $this->setPageTitle(ts('Premium Product')); if ($this->_action & CRM_Core_Action::PREVIEW) { CRM_Contribute_BAO_Premium::buildPremiumPreviewBlock($this, $this->_id); - - $this->addButtons(array( - array( - 'type' => 'next', - 'name' => ts('Done with Preview'), - 'isDefault' => TRUE, - ), - ) - ); - return; } if ($this->_action & CRM_Core_Action::DELETE) { - $this->addButtons(array( - array( - 'type' => 'next', - 'name' => ts('Delete'), - 'isDefault' => TRUE, - ), - array( - 'type' => 'cancel', - 'name' => ts('Cancel'), - ), - ) - ); return; } @@ -222,7 +201,6 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { ), ) ); - $this->assign('productId', $this->_id); } @@ -294,7 +272,7 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { } /** - * Function to process the form + * Process the form submission * * @access public * @@ -420,5 +398,6 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { $config = CRM_Core_Config::singleton(); return $config->imageUploadURL.basename($newFilename); } + }