You are here

function sms_clickatell_send in SMS Framework 6

Same name and namespace in other branches
  1. 5 modules/sms_clickatell/sms_clickatell.module \sms_clickatell_send()

Callback for sending messages.

Options for this send function: see sms_txtlocal_command()

Parameters

$number: MSISDN of message recipient. Expected to include the country code prefix.

$message: Message body text.

$options: Options from SMS Framework.

Return value

Response from sms_clickatell_command()

1 string reference to 'sms_clickatell_send'
sms_clickatell_gateway_info in modules/sms_clickatell/sms_clickatell.module
Implement hook_gateway_info()

File

modules/sms_clickatell/sms_clickatell.module, line 186
Clickatell gateway module for Drupal SMS Framework. Outbound+Inbound+Receipts

Code

function sms_clickatell_send($number, $message, $options) {

  // Attach the country code to the number, if required
  if (array_key_exists('country', $options)) {
    $number = $options['country'] . $number;
  }
  return sms_clickatell_command('sendmsg', array(
    'number' => $number,
    'message' => $message,
    'options' => $options,
  ));
}