function _openid_get_params

7.x openid.inc _openid_get_params($str)
6.x openid.inc _openid_get_params($str)
1 call to _openid_get_params()
_openid_response in drupal-7.x/modules/openid/openid.inc

File

drupal-7.x/modules/openid/openid.inc, line 588
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;
}