INFRA-132 - CRM/Custom - phpcbf
[civicrm-core.git] / CRM / Custom / Form / DeleteGroup.php
index 34beaeefb8dee42b25104c19d01551398268d18d..ca19b44db6792b2e299609bc1b931e6d93055b9e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -39,7 +39,7 @@
 class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
 
   /**
-   * the group id
+   * The group id
    *
    * @var int
    */
@@ -53,12 +53,12 @@ class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
   protected $_title;
 
   /**
-   * set up variables to build the form
+   * Set up variables to build the form
    *
    * @return void
    * @acess protected
    */
-  function preProcess() {
+  public function preProcess() {
     $this->_id = $this->get('id');
 
     $defaults = array();
@@ -82,10 +82,9 @@ class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
   }
 
   /**
-   * Function to actually build the form
+   * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
 
@@ -107,7 +106,6 @@ class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
    * Process the form when submitted
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     $group = new CRM_Core_DAO_CustomGroup();
@@ -119,4 +117,3 @@ class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
     CRM_Core_Session::setStatus(ts("The Group '%1' has been deleted.", array(1 => $group->title)), '', 'success');
   }
 }
-