function sms_user_validate_number in SMS Framework 6
Same name and namespace in other branches
- 5 modules/sms_user/sms_user.module \sms_user_validate_number()
- 6.2 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 - Implmentation of hook_user().
File
- modules/
sms_user/ sms_user.module, line 287 - 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.');
}
}