function sms_user_validate_number in SMS Framework 5
Same name and namespace in other branches
- 6.2 modules/sms_user/sms_user.module \sms_user_validate_number()
- 6 modules/sms_user/sms_user.module \sms_user_validate_number()
2 calls to sms_user_validate_number()
- sms_user_settings_add_form_validate in modules/
sms_user/ sms_user.module - sms_user_user in modules/
sms_user/ sms_user.module
File
- modules/
sms_user/ sms_user.module, line 296 - Provides integration between the SMS Framework and Drupal users.
Code
function sms_user_validate_number(&$number) {
if ($error = sms_validate_number($number)) {
return $error;
}
elseif (sms_user_get_uid($number, SMS_USER_CONFIRMED)) {
return t('This phone number is already registered to another user.');
}
}