You are here

function sms_send_log in SMS Framework 7

Same name and namespace in other branches
  1. 5 sms.module \sms_send_log()
  2. 6.2 sms.module \sms_send_log()
  3. 6 sms.module \sms_send_log()

Logs sms message.

This is a rudimentary implementation of an sms gateway by simply logging the message to watchdog.

Parameters

string $number: Comma-separated list of mobile numbers message was sent to.

string $message: The message that was sent.

array $options: An associative array of options passed to gateway.

Return value

array An array containing one key:

  • status: true.
1 string reference to 'sms_send_log'
sms_gateway_info in ./sms.module
Implements hook_gateway_info().

File

./sms.module, line 364
The core of the SMS Framework. Provides gateway management and API for sending and receiving SMS messages.

Code

function sms_send_log($number, $message, $options) {
  watchdog('sms', 'SMS message sent to %number with the text: @message', array(
    '%number' => $number,
    '@message' => $message,
  ), WATCHDOG_INFO);
  return array(
    'status' => TRUE,
  );
}