function sms_track_sms_send_process in SMS Framework 7
Same name and namespace in other branches
- 6.2 modules/sms_track/sms_track.module \sms_track_sms_send_process()
- 6 modules/sms_track/sms_track.module \sms_track_sms_send_process()
Implements hook_sms_send_process().
Parameters
string $op: Operation string (pre process, process, post process).
string $number: MSISDN of recipient.
string $message: SMS message body.
array $options: Additional options array including sender.
array $gateway: Gateway array for the active gateway.
array $result: Result array from the gateway response handler.
File
- modules/
sms_track/ sms_track.module, line 134 - Message tracking feature module for Drupal SMS Framework.
Code
function sms_track_sms_send_process($op, $number, $message, $options, $gateway, $result) {
if ($op == 'post process') {
// Archiving (outgoing == 0)
$dir = 0;
$options = isset($options) && is_array($options) ? $options : array();
$options['gateway_id'] = $gateway['identifier'];
$options['result'] = $result;
sms_track_archive_write($dir, $number, $message, $options);
}
}