You are here

function sms_track_sms_incoming in SMS Framework 6

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

Implement hook_sms_incoming()

Parameters

$op: SMS incoming operation string (pre process, process, post process)

$number: MSISDN of sender

$message: SMS message body string

$options: Additional options array including receiver MSISDN

File

modules/sms_track/sms_track.module, line 154
Message tracking feature module for Drupal SMS Framework.

Code

function sms_track_sms_incoming($op, $number, $message, $options) {
  if ($op == 'pre process') {

    // Archiving
    $dir = 1;

    // incoming
    sms_track_archive_write($dir, $number, $message, $options);
  }
}