function _openid_meta_httpequiv
7.x openid.inc | _openid_meta_httpequiv($equiv, $html) |
6.x openid.inc | _openid_meta_httpequiv($equiv, $html) |
Pull the http-equiv attribute out of an html meta element
1 call to _openid_meta_httpequiv()
- _openid_xrds_discovery in drupal-7.x/
modules/ openid/ openid.module - OpenID discovery method: perform a XRDS discovery.
File
- drupal-7.x/
modules/ openid/ openid.inc, line 412 - OpenID utility functions.
Code
function _openid_meta_httpequiv($equiv, $html) {
preg_match('|<meta\s+http-equiv=["\']' . $equiv . '["\'](.*)/?>|iUs', $html, $matches);
if (isset($matches[1])) {
preg_match('|content=["\']([^"]+)["\']|iUs', $matches[1], $content);
if (isset($content[1])) {
return $content[1];
}
}
return FALSE;
}