You are here

function sms_track_sms_send_process in SMS Framework 6

Same name and namespace in other branches
  1. 6.2 modules/sms_track/sms_track.module \sms_track_sms_send_process()
  2. 7 modules/sms_track/sms_track.module \sms_track_sms_send_process()

Implement hook_sms_send_process()

Parameters

$op: Operation string (pre process, process, post process)

$number: MSISDN of recipient

$message: SMS message body string

$options: Additional options array including sender

$gateway: Gateway array for the active gateway

$result: Result array from the gateway response handler

File

modules/sms_track/sms_track.module, line 131
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
    $dir = 0;

    // outgoing
    $options['gateway_id'] = $gateway['identifier'];
    $options['result'] = $result;
    $result = sms_track_archive_write($dir, $number, $message, $options);
  }
}