You are here

function sms_user_token_values in SMS Framework 5

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

Implementation of hook_token_values()

File

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

Code

function sms_user_token_values($type, $object = NULL, $options = array()) {
  global $user;
  $values = array();
  switch ($type) {
    case 'sms_user':
      $values['confirm-code'] = $object['confirm-code'];
      $values['mobile-url'] = url("user/{$user->uid}/mobile", NULL, NULL, TRUE);
      break;
  }
  return $values;
}