You are here

function _openid_xri_normalize in Drupal 7

OpenID normalization method: normalize XRI identifiers.

1 string reference to '_openid_xri_normalize'
openid_openid_normalization_method_info in modules/openid/openid.module
Implements hook_openid_normalization_method_info().

File

modules/openid/openid.inc, line 303
OpenID utility functions.

Code

function _openid_xri_normalize($identifier) {
  if (_openid_is_xri($identifier)) {
    if (stristr($identifier, 'xri://') !== FALSE) {
      $identifier = substr($identifier, 6);
    }
    return $identifier;
  }
}