Pseudoconstant - Standardize callback params
authorcolemanw <coleman@civicrm.org>
Fri, 21 Jul 2023 16:32:48 +0000 (12:32 -0400)
committercolemanw <coleman@civicrm.org>
Fri, 21 Jul 2023 16:32:48 +0000 (12:32 -0400)
commit7ea896a54487e37878a880bf5d9360e0f7257f93
tree4dcc8b202e808719170d7717f81c37e93f845e09
parentc1bf8a765de607abae4728fced38758298660e77
Pseudoconstant - Standardize callback params

Before: pseudoconstant callbacks received different params depending on where they were being called from
After: Standardized on ($fieldName, $params)

Note: The previous $context arg is useless and also contained in $params if it's really needed.
CRM/ACL/BAO/ACL.php
CRM/Core/BAO/CustomGroup.php
CRM/Core/PseudoConstant.php
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Service/Spec/SpecFormatter.php