function hook_sms_receipt in SMS Framework 7
Handle and process SMS message receipts from gateways.
Parameters
string $op: Either 'pre process', 'process' or 'post process'.
string $number: The recipient phone number.
string $reference: The unique reference ID for this particular message and recipient.
string $message_status: The SMS message status from the predefined SMS_GW_* or SMS_MSG_STATUS_* codes.
array $options: An array of options for the SMS message.
1 function implements hook_sms_receipt()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- sms_track_sms_receipt in modules/
sms_track/ sms_track.module - Implements hook_sms_receipt().
1 invocation of hook_sms_receipt()
- sms_receipt in ./
sms.module - Handles responses to message transactions.
File
- ./
sms.api.php, line 80 - SMS Framework hooks.
Code
function hook_sms_receipt($op, $number, $reference, $message_status, array $options) {
switch ($op) {
case 'pre process':
watchdog('sms', 'Message receipt with status @status from @number', array(
'@number' => $number,
'@status' => $message_status,
));
break;
case 'post process':
drupal_mail('sms', 'receipt', 'user@example.com', 'en', array());
break;
}
}