function _openid_is_xri
Same name and namespace in other branches
- 6.x drupal-6.x/modules/openid/openid.inc \_openid_is_xri()
Determine if the given identifier is an XRI ID.
3 calls to _openid_is_xri()
- OpenIDTestCase::testOpenidXRITest in drupal-7.x/
modules/ openid/ openid.test - Test _openid_is_xri().
- _openid_xri_discovery in drupal-7.x/
modules/ openid/ openid.module - OpenID discovery method: perform an XRI discovery.
- _openid_xri_normalize in drupal-7.x/
modules/ openid/ openid.inc - OpenID normalization method: normalize XRI identifiers.
Archivo
- drupal-7.x/
modules/ openid/ openid.inc, line 257 - OpenID utility functions.
Código
function _openid_is_xri($identifier) {
// Strip the xri:// scheme from the identifier if present.
if (stripos($identifier, 'xri://') === 0) {
$identifier = substr($identifier, 6);
}
// Test whether the identifier starts with an XRI global context symbol or (.
$firstchar = substr($identifier, 0, 1);
if (strpos("=@+$!(", $firstchar) !== FALSE) {
return TRUE;
}
return FALSE;
}