function _openid_get_params in Drupal 6
Same name and namespace in other branches
- 7 modules/openid/openid.inc \_openid_get_params()
1 call to _openid_get_params()
- _openid_response in modules/
openid/ openid.inc
File
- modules/
openid/ openid.inc, line 397 - OpenID utility functions.
Code
function _openid_get_params($str) {
$chunks = explode("&", $str);
$data = array();
foreach ($chunks as $chunk) {
$parts = explode("=", $chunk, 2);
if (count($parts) == 2) {
list($k, $v) = $parts;
$data[$k] = urldecode($v);
}
}
return $data;
}