You are here

function _openid_get_params in Drupal 7

Same name and namespace in other branches
  1. 6 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 594
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;
}