function openid_user_add_validate

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/openid/openid.pages.inc \openid_user_add_validate()

Archivo

drupal-6.x/modules/openid/openid.pages.inc, line 69
User page callbacks for the openid module.

Código

function openid_user_add_validate($form, &$form_state) {
  // Check for existing entries.
  $claimed_id = _openid_normalize($form_state['values']['openid_identifier']);
  if (db_result(db_query("SELECT authname FROM {authmap} WHERE authname='%s'", $claimed_id))) {
    form_set_error('openid_identifier', t('That OpenID is already in use on this site.'));
  }
}