You are here

function sms_user_sms_incoming in SMS Framework 6

Same name and namespace in other branches
  1. 5 modules/sms_user/sms_user.module \sms_user_sms_incoming()
  2. 6.2 modules/sms_user/sms_user.module \sms_user_sms_incoming()
  3. 7 modules/sms_user/sms_user.module \sms_user_sms_incoming()

Implementation of hook_sms_incoming().

File

modules/sms_user/sms_user.module, line 472
Provides integration between the SMS Framework and Drupal users.

Code

function sms_user_sms_incoming($op, $number, $message) {
  switch ($op) {
    case 'pre process':
      sms_user_authenticate($number);
      break;
    case 'post process':
      sms_user_logout();
      break;
  }
}