You are here

function _sms_user_confirm_message in SMS Framework 7

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

Creates a confirmation message sent to a user.

This message contains a code which is used to confirm that the number is actually correct. Message may be tokenized.

Parameters

string $code: Random code to send to user.

Return value

string Created message, ready to send to user.

1 call to _sms_user_confirm_message()
sms_user_send_confirmation in modules/sms_user/sms_user.module
Sends confirmation code to user for number verification.

File

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

Code

function _sms_user_confirm_message($code) {
  $text_format = variable_get('sms_user_confirmation_message', '[site:name] confirmation code: ') . $code;
  $text = token_replace($text_format, array(
    'confirm-code' => $code,
  ));
  return $text;
}