function _openid_get_params

1 call to _openid_get_params()
_openid_response in modules/openid/openid.inc

File

modules/openid/openid.inc, line 594

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.