Removed unused parameter from function signature
authorEileen McNaughton <eileen@fuzion.co.nz>
Sat, 9 May 2015 09:46:20 +0000 (21:46 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sat, 9 May 2015 09:46:20 +0000 (21:46 +1200)
29 files changed:
CRM/Activity/Form/Activity.php
CRM/Activity/Form/Task/Batch.php
CRM/Activity/Import/Parser/Activity.php
CRM/Batch/Form/Entry.php
CRM/Campaign/Form/Campaign.php
CRM/Campaign/Form/Petition/Signature.php
CRM/Campaign/Form/Survey/Main.php
CRM/Campaign/Form/Task/Interview.php
CRM/Case/Form/Activity.php
CRM/Case/Form/Case.php
CRM/Contact/Form/Contact.php
CRM/Contribute/BAO/Contribution/Utils.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Contribute/Form/Task/Batch.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Core/BAO/Address.php
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/CustomValueTable.php
CRM/Event/Form/ManageEvent/EventInfo.php
CRM/Event/Form/Participant.php
CRM/Event/Form/Task/Batch.php
CRM/Event/Import/Parser/Participant.php
CRM/Grant/Form/Grant.php
CRM/Group/Form/Edit.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/Form/Task/Batch.php
CRM/Member/Import/Parser/Membership.php
CRM/Pledge/Form/Pledge.php

index a3e76f43753d99282ad567c7cae9334f6006ed39..39d9c37e319e9778bbf1e4049bc75a6309d0f9ad 100644 (file)
@@ -908,7 +908,6 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
         )
       );
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-        $customFields,
         $this->_activityId,
         'Activity'
       );
index 9381c74d41b1d89a7228405af67598495993ed00..7d1b71b0632ba1773214aa6f622a44cee98598fa 100755 (executable)
@@ -221,7 +221,6 @@ class CRM_Activity_Form_Task_Batch extends CRM_Activity_Form_Task {
       foreach ($params['field'] as $key => $value) {
 
         $value['custom'] = CRM_Core_BAO_CustomField::postProcess($value,
-          CRM_Core_DAO::$_nullObject,
           $key, 'Activity'
         );
         $value['id'] = $key;
index 206c9125202f4bd30bc66a2c9b05bea00e0f67ef..778d0b322eda3f75f833f2657432431efdff4af0 100644 (file)
@@ -298,7 +298,6 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Activity_Import_Parser {
     }
 
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      CRM_Core_DAO::$_nullObject,
       NULL,
       'Activity'
     );
index d2904973f6a3f93b7121fe2a72f9ea40b2104b6f..02daea9a3b9fd8f0bc80dfea2c6b763cd963df3a 100755 (executable)
@@ -463,7 +463,6 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
         }
 
         $value['custom'] = CRM_Core_BAO_CustomField::postProcess($value,
-          CRM_Core_DAO::$_nullObject,
           NULL,
           'Contribution'
         );
@@ -674,7 +673,6 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
 
         //check for custom data
         $value['custom'] = CRM_Core_BAO_CustomField::postProcess($params['field'][$key],
-          $customFields,
           $key,
           'Membership',
           $membershipTypeId
index 923d7838c9c519bde73b238df9e3760be8940d22..2fe34bcc7b089df6b036c705ff3d76e6cd9c9f44 100644 (file)
@@ -365,7 +365,6 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form {
       CRM_Utils_Array::value('campaign_type_id', $params)
     );
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       $this->_campaignId,
       'Campaign'
     );
index b7b6ae238a5fab57aec47cb28b6e8eada2667614..0affe05a240bbaa7b506ce41f7e25c4987259941 100644 (file)
@@ -515,7 +515,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
     );
 
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customActivityFields,
       NULL,
       'Activity'
     );
index 2a7090f649835d84b91101750e2b4e517c48a979..c855a782629907da8258ff20ab118194208f2ee9 100644 (file)
@@ -216,7 +216,6 @@ class CRM_Campaign_Form_Survey_Main extends CRM_Campaign_Form_Survey {
     $params['is_default'] = CRM_Utils_Array::value('is_default', $params, 0);
 
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       $this->_surveyId,
       'Survey'
     );
index cfee48b717ac8ecc8f29fe00691a928fbae768df..b427d5099b7a39f9bb8e9a40648c3337d5327849 100755 (executable)
@@ -498,7 +498,6 @@ WHERE {$clause}
 
     //format custom fields.
     $customParams = CRM_Core_BAO_CustomField::postProcess($params,
-      $surveyFields,
       $activityId,
       'Activity'
     );
index 8562997cca8340748bd667c871daeb7abc1710ef..5ad909a51be3a5af493e38ca29f924f4b4783cf4 100644 (file)
@@ -473,7 +473,6 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
         )
       );
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-        $customFields,
         $this->_activityId,
         'Activity'
       );
index 56721b0c40e6d33e142a503506393cd6d54a0841..30861c118ad6adf384f661f560ae554b648930e7 100644 (file)
@@ -376,7 +376,6 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
       $customFields = array();
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess(
         $params,
-        $customFields,
         NULL,
         'Case'
       );
@@ -423,7 +422,6 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
         )
       );
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-        $customFields,
         $this->_activityId,
         'Activity'
       );
index 877ab7e551adb978a680aeb811af950388f0f2c8..7406f373ac9dbd9cfac41cc1cf46bd9a2d14c531 100644 (file)
@@ -946,7 +946,6 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
     $customFieldExtends = (CRM_Utils_Array::value('contact_sub_type', $params)) ? $params['contact_sub_type'] : $params['contact_type'];
 
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       $this->_contactId,
       $customFieldExtends,
       TRUE
index 0d847985317f2beb9e9d0a97451ea141f50a4e2e..81cb9e71e7a3b5a2115f699b70f7606b325eed2a 100644 (file)
@@ -798,7 +798,6 @@ INNER JOIN   civicrm_contact contact ON ( contact.id = contrib.contact_id )
       )
     );
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       CRM_Utils_Array::value('id', $params, NULL),
       'Contribution'
     );
index 74f53f0c3e24c7855fe75f36b230f0ef6811b470..ec8246020f208b622148aac321f8bec464a30805 100644 (file)
@@ -324,7 +324,6 @@ class CRM_Contribute_Form_AdditionalInfo {
       )
     );
     $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       CRM_Utils_Array::value('id', $params, NULL),
       'Contribution'
     );
index 89916cd2ab9084596b243ded17bffac9ac1aa801..3bfb76a318fd0783e80dd4bfc505ed82bbf8de43 100644 (file)
@@ -221,7 +221,6 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task {
       foreach ($params['field'] as $key => $value) {
 
         $value['custom'] = CRM_Core_BAO_CustomField::postProcess($value,
-          CRM_Core_DAO::$_nullObject,
           $key,
           'Contribution'
         );
index d68c55223048e83b89606e9fbdf69f6b3c79bbab..09e322953df0898bafe043b5c68eb603a14537f5 100644 (file)
@@ -355,7 +355,6 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa
 
     if ($onDuplicate != CRM_Import_Parser::DUPLICATE_UPDATE) {
       $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($formatted,
-        CRM_Core_DAO::$_nullObject,
         NULL,
         'Contribution'
       );
@@ -375,7 +374,6 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa
         if ($ids['contribution']) {
           $formatted['id'] = $ids['contribution'];
           $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($formatted,
-            CRM_Core_DAO::$_nullObject,
             $formatted['id'],
             'Contribution'
           );
index 287a4975e9f906c32b0638b56fe28796b09e5bcb..d3065a3c208e3413cf9681fa92bb22e8636f8d6f 100644 (file)
@@ -170,7 +170,6 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
       }
       if (!empty($customFields)) {
         $addressCustom = CRM_Core_BAO_CustomField::postProcess($params,
-          $customFields,
           $address->id,
           'Address',
           TRUE
index 5c20bf5b9e192e7bbf9162626012d62be0745cdd..d42fc14530220ca8444e1a73cb7b61c5a3feed32 100644 (file)
@@ -2234,8 +2234,6 @@ ORDER BY html_type";
 
   /**
    * @param array $params
-   * @param array $customFields
-   *   Unused parameter
    * @param int $entityID
    * @param $customFieldExtends
    * @param bool $inline
@@ -2244,7 +2242,6 @@ ORDER BY html_type";
    */
   public static function postProcess(
     &$params,
-    $customFields,
     $entityID,
     $customFieldExtends,
     $inline = FALSE
index fade2e6c3132b2c800e3e266f17e8897d2dcf4e8..10c377872758bbaa2e60c5d7e6c1c3ef2c1212e4 100644 (file)
@@ -360,7 +360,6 @@ class CRM_Core_BAO_CustomValueTable {
    */
   public static function postProcess(&$params, $entityTable, $entityID, $customFieldExtends) {
     $customData = CRM_Core_BAO_CustomField::postProcess($params,
-      array(),
       $entityID,
       $customFieldExtends
     );
index 2b3e1a701a2576b063b09e8790a4fea1a1cc00b3..d41bdd13db8e20dc654929140af6df4d7d96f6aa 100644 (file)
@@ -294,7 +294,6 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
       CRM_Utils_Array::value('event_type_id', $params)
     );
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       $this->_id,
       'Event'
     );
index 812c10af5c48d707e6d889cdb407346544ded0d8..0930d5b95c1a9e8e633ef76d4ad6fa132fe39f45 100644 (file)
@@ -1164,7 +1164,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
       $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEvent, $customFields);
       $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEventType, $customFields);
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-        $customFields,
         $this->_id,
         'Participant'
       );
index 6b9179dacb476d8c177b29b2c048e910ad06a98c..04a68058598c0a1666d84b848fe063600a1790b7 100644 (file)
@@ -278,7 +278,6 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
 
         //check for custom data
         $value['custom'] = CRM_Core_BAO_CustomField::postProcess($value,
-          CRM_Core_DAO::$_nullObject,
           $key,
           'Participant'
         );
index a3c6548fdf689230bebf804ceef2035af9313be2..8d72d37ddce8d3c409b04e3dfee549b2ea258e7c 100644 (file)
@@ -352,7 +352,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser {
 
     if ($onDuplicate != CRM_Import_Parser::DUPLICATE_UPDATE) {
       $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($formatted,
-        CRM_Core_DAO::$_nullObject,
         NULL,
         'Participant'
       );
@@ -363,7 +362,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser {
         $dao->id = $formatValues['participant_id'];
 
         $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($formatted,
-          CRM_Core_DAO::$_nullObject,
           $formatValues['participant_id'],
           'Participant'
         );
index f0a807b321bf85dbcd1ce2143755bfcd782a75dd..5dbc0782491f0b9307c724d9bb33fa83cb2922e7 100644 (file)
@@ -302,7 +302,6 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form {
       CRM_Core_BAO_CustomField::getFields('Grant', FALSE, FALSE, NULL, NULL, TRUE)
     );
     $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-      $customFields,
       $this->_id,
       'Grant'
     );
index 7143eb20c98f6a189a078f067281aa735c91e0d6..c1ac4981df5e9c6318f4da3ff993b34bbf1a2792 100644 (file)
@@ -396,7 +396,6 @@ WHERE  title = %1
 
       $customFields = CRM_Core_BAO_CustomField::getFields('Group');
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params,
-        $customFields,
         $this->_id,
         'Group'
       );
index c82743847a7b25b96878bb08794acc570e273222..ee262e0ec69078dbf8764a455b5a62e4b625a590 100644 (file)
@@ -1177,7 +1177,6 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
       );
 
       $membershipTypeValues[$memType]['custom'] = CRM_Core_BAO_CustomField::postProcess($formValues,
-        $customFields,
         $this->_id,
         'Membership'
       );
index ffafcf6d9344083ff57bdf0cc35fb93e6fbd91ca..407942784dc266f0dd677b356102db8b35b97784 100644 (file)
@@ -639,7 +639,6 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
     );
 
     $customFieldsFormatted = CRM_Core_BAO_CustomField::postProcess($formValues,
-      $customFields,
       $this->_id,
       'Membership'
     );
index 61233474edea202b426b5cb6ad61f68e4dbe2066..b17ebff90b47eb7ca12c9f67d5c05f0da64377d4 100644 (file)
@@ -254,7 +254,6 @@ class CRM_Member_Form_Task_Batch extends CRM_Member_Form_Task {
         }
         //check for custom data
         $value['custom'] = CRM_Core_BAO_CustomField::postProcess($params['field'][$key],
-          $customFields,
           $key,
           'Membership',
           $membershipTypeId
index 358826b8d6365be4b841cb7fd807605700373f5a..303d7800e31f84a378043bee48d6d39c762cda9e 100644 (file)
@@ -356,7 +356,6 @@ class CRM_Member_Import_Parser_Membership extends CRM_Member_Import_Parser {
 
       if ($onDuplicate != CRM_Import_Parser::DUPLICATE_UPDATE) {
         $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($formatted,
-          CRM_Core_DAO::$_nullObject,
           NULL,
           'Membership'
         );
@@ -380,7 +379,6 @@ class CRM_Member_Import_Parser_Membership extends CRM_Member_Import_Parser {
           }
 
           $formatted['custom'] = CRM_Core_BAO_CustomField::postProcess($formatted,
-            CRM_Core_DAO::$_nullObject,
             $formatValues['membership_id'],
             'Membership'
           );
index 7b3d66da802c5b9bcc7063a8ba82c422f48bd5cc..58366d6833835a04b7bdabcb96fe9abe7096422e 100644 (file)
@@ -569,7 +569,6 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form {
 
       $customFields = CRM_Core_BAO_CustomField::getFields('Pledge');
       $params['custom'] = CRM_Core_BAO_CustomField::postProcess($formValues,
-        $customFields,
         $this->_id,
         'Pledge'
       );