You are here

function sms_user_token_values in SMS Framework 6

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

Implementation of hook_token_values()

File

modules/sms_user/sms_user.module, line 444
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", array(
        'absolute' => TRUE,
      ));
      break;
  }
  return $values;
}