X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FToken%2FAbstractTokenSubscriber.php;h=450955bfd5b0b3cf43a96beebb5625b3f71990c6;hb=c0afaa3afad5c0b5aa4f06be9b6bd64316420740;hp=1164032de84c384de0cb3d938fef5fd2c50829f5;hpb=5a304983c66b26f74b6e97d8e1b97ce294b50578;p=civicrm-core.git diff --git a/Civi/Token/AbstractTokenSubscriber.php b/Civi/Token/AbstractTokenSubscriber.php index 1164032de8..450955bfd5 100644 --- a/Civi/Token/AbstractTokenSubscriber.php +++ b/Civi/Token/AbstractTokenSubscriber.php @@ -117,22 +117,6 @@ abstract class AbstractTokenSubscriber implements EventSubscriberInterface { } } - /** - * Get all custom field tokens of $entity - * - * @param string $entity - * @return array $customTokens - * return custom field tokens in array('custom_N' => 'label') format - */ - public function getCustomTokens($entity) { - $customTokens = array(); - foreach (\CRM_Core_BAO_CustomField::getFields($entity) as $id => $info) { - $customTokens["custom_$id"] = $info['label']; - } - - return $customTokens; - } - /** * Alter the query which prepopulates mailing data * for scheduled reminders.