You are here

function messaging_sms_send_user in Messaging 5

Send mail message to user account

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

File

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

Code

function messaging_sms_send_user($account, $message) {

  // Try to find an available gateway
  if (!empty($account->sms_user[0]) && $account->sms_user[0]['status'] == 2) {
    return messaging_message_send(array(
      $account,
    ), $message, 'sms');
  }
  else {
    return FALSE;
  }
}