You are here

function messaging_sms_send_msg in Messaging 5

Same name and namespace in other branches
  1. 6.4 messaging_sms/messaging_sms.module \messaging_sms_send_msg()
  2. 6 messaging_sms/messaging_sms.module \messaging_sms_send_msg()
  3. 6.2 messaging_sms/messaging_sms.module \messaging_sms_send_msg()
  4. 6.3 messaging_sms/messaging_sms.module \messaging_sms_send_msg()

Send message to multiple destinations

Parameters

$destination: User account or destination phone number

1 string reference to 'messaging_sms_send_msg'
messaging_sms_messaging in messaging_sms/messaging_sms.module
Implementation of hook_messaging

File

messaging_sms/messaging_sms.module, line 58
SMS Messsaging using SMS Framework. Messaging method plug-in

Code

function messaging_sms_send_msg($destination, $message, $params = array()) {
  $text = $message['subject'] . ' ' . $message['body'];
  if (is_object($destination)) {
    return sms_user_send($destination->uid, $text);
  }
  else {
    return sms_send($destination, $text, $params);
  }
}