function _sms_user_confirm_message in SMS Framework 6.2
Same name and namespace in other branches
- 5 modules/sms_user/sms_user.module \_sms_user_confirm_message()
- 6 modules/sms_user/sms_user.module \_sms_user_confirm_message()
- 7 modules/sms_user/sms_user.module \_sms_user_confirm_message()
Create a confirmation message sent to a user, this contains a code which is used to confirm that the number is actually correct.
Parameters
$code: Random code to send to user.
Return value
$text 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
File
- modules/
sms_user/ sms_user.module, line 500 - 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: [confirm-code]');
$text = token_replace_multiple($text_format, array(
'sms_user' => array(
'confirm-code' => $code,
),
));
return $text;
}