CRM-16036 - remove getfields from mailing test as it is producing incorrect results...
authoreileenmcnaugton <eileen@fuzion.co.nz>
Wed, 12 Aug 2015 23:35:18 +0000 (11:35 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Wed, 12 Aug 2015 23:47:14 +0000 (11:47 +1200)
api/v3/MailingGroup.php

index 7f973036f2125effce93bd1724d113b25cac6891..ec9b6b7cacf6a91600d13c4a600b9e0c5a4664b2 100644 (file)
@@ -130,30 +130,3 @@ function civicrm_api3_mailing_group_get($params) {
 function civicrm_api3_mailing_group_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
-
-/**
- * Get metadata for mailing group functions.
- *
- * @param array $params
- *
- * @return array
- */
-function civicrm_api3_mailing_group_getfields($params) {
-  $dao = _civicrm_api3_get_DAO('Subscribe');
-  $d = new $dao();
-  $fields = $d->fields();
-  $d->free();
-
-  $dao = _civicrm_api3_get_DAO('Unsubscribe');
-  $d = new $dao();
-  $fields = $fields + $d->fields();
-  $d->free();
-
-  // CRM-13830 - prevent the api wrapper from helping out with pseudoconstants
-  // Since these fields don't belong to this entity it will fail
-  foreach ($fields as &$field) {
-    unset($field['pseudoconstant']);
-  }
-
-  return civicrm_api3_create_success($fields, $params, 'MailingGroup', 'getfields');
-}