You are here

function mobile_number_send_sms in Mobile Number 7

Same name and namespace in other branches
  1. 8 mobile_number.module \mobile_number_send_sms()
  2. 2.0.x mobile_number.module \mobile_number_send_sms()

Send sms wrapper function.

Parameters

string $number: Mobile number to send sms to.

string $message: Sms message.

Return value

bool Returns sms callback return value, expecting a bool status of the sms sending function.

1 call to mobile_number_send_sms()
MobileNumber::sendVerification in src/MobileNumber.php
Send verification code to mobile number.

File

./mobile_number.module, line 1120
mobile_number.module

Code

function mobile_number_send_sms($number, $message) {
  $callback = mobile_number_sms_callback();
  if (!$callback) {
    return FALSE;
  }
  return call_user_func($callback, $number, $message);
}