You are here

function sms_track_sms_incoming in SMS Framework 7

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

Implements hook_sms_incoming().

Parameters

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

string $number: MSISDN of sender.

string $message: SMS message body string.

array $options: Additional options including receiver MSISDN.

File

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

Code

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

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