Merge pull request #4925 from KarinG/patch-1
[civicrm-core.git] / CRM / Price / Form / DeleteSet.php
index 12ab825b0bd515de4e00110ec0687d732a6bbcda..d3c330a02ab155eae4cde214ec41ba255bbcd123 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -56,8 +56,9 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form {
    * Set up variables to build the form
    *
    * @return void
-   * @acess protected
-   */ function preProcess() {
+   * @access protected
+   */
+  function preProcess() {
     $this->_sid = $this->get('sid');
 
     $this->_title = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet',
@@ -69,7 +70,6 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form {
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
     $this->assign('title', $this->_title);
@@ -91,19 +91,17 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form {
    * Process the form when submitted
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     if (CRM_Price_BAO_PriceSet::deleteSet($this->_sid)) {
       CRM_Core_Session::setStatus(ts('The Price Set \'%1\' has been deleted.',
-          array(1 => $this->_title), ts('Deleted'), 'success'
-        ));
+        array(1 => $this->_title), ts('Deleted'), 'success'
+      ));
     }
     else {
       CRM_Core_Session::setStatus(ts('The Price Set \'%1\' has not been deleted! You must delete all price fields in this set prior to deleting the set.',
-          array(1 => $this->_title)
-        ), 'Unable to Delete', 'error');
+        array(1 => $this->_title)
+      ), 'Unable to Delete', 'error');
     }
   }
 }
-