X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FSMS%2FProvider.php;h=9cb40538cdca5efada7b9f8c178919f3ce4ff097;hb=ca43b565f156713091b30f28959742e7132fad35;hp=896302ea13eec13b4a9b2f8186e1d75521316fff;hpb=ade6fb60d785ddb1a0ee60782644ea34a4c01eef;p=civicrm-core.git diff --git a/CRM/SMS/Provider.php b/CRM/SMS/Provider.php index 896302ea13..9cb40538cd 100644 --- a/CRM/SMS/Provider.php +++ b/CRM/SMS/Provider.php @@ -83,38 +83,6 @@ abstract class CRM_SMS_Provider { */ abstract public function send($recipients, $header, $message, $dncID = NULL); - /** - * Return message text. - * - * Child class could override this function to have better control over the message being sent. - * - * @param string $message - * @param int $contactID - * @param array $contactDetails - * - * @return string - */ - public function getMessage($message, $contactID, $contactDetails) { - $html = $message->getHTMLBody(); - $text = $message->getTXTBody(); - - return $html ? $html : $text; - } - - /** - * Get recipient details. - * - * @param array $fields - * @param array $additionalDetails - * - * @return mixed - */ - public function getRecipientDetails($fields, $additionalDetails) { - // we could do more altering here - $fields['To'] = $fields['phone']; - return $fields; - } - /** * @param int $apiMsgID * @param $message