function _openid_is_xri
_openid_is_xri($identifier)
Determine if the given identifier is an XRI ID.
File
- modules/openid/openid.inc, line 262
- OpenID utility functions.
Code
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/function/_openid_is_xri/7.x