Merge pull request #4880 from totten/master-cs3
[civicrm-core.git] / CRM / Custom / Form / MoveField.php
index 67c41be61211b727105c2e71147b4c09e374992e..f3f24ad9436450d0e615b72362685b357d939fc9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -79,7 +79,7 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
    * @return void
    * @acess protected
    */
-  function preProcess() {
+  public function preProcess() {
     $this->_srcFID = CRM_Utils_Request::retrieve('fid', 'Positive',
       $this, TRUE
     );
@@ -106,7 +106,6 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
 
@@ -148,7 +147,7 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
    *
    * @return array|bool
    */
-  static function formRule($fields, $files, $self) {
+  public static function formRule($fields, $files, $self) {
     $self->_dstGID = $fields['dst_group_id'];
     $tmp           = CRM_Core_BAO_CustomField::_moveFieldValidate($self->_srcFID, $self->_dstGID);
     $errors        = array();
@@ -162,7 +161,6 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
    * Process the form when submitted
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     CRM_Core_BAO_CustomField::moveField($this->_srcFID, $this->_dstGID);
@@ -176,8 +174,7 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
       array(
       1 => $this->_srcFieldLabel,
           2 => $dstGroup,
-        3 => $srcUrl
+        3 => $srcUrl,
         )), '', 'success');
   }
 }
-