You are here

function sms_user_validate_number in SMS Framework 6.2

Same name and namespace in other branches
  1. 5 modules/sms_user/sms_user.module \sms_user_validate_number()
  2. 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
Implmentation of hook_user().

File

modules/sms_user/sms_user.module, line 355
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)) {
    return t('This phone number is already registered to another user.');
  }
}