function drupal_get_query_array

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 common.inc drupal_get_query_array($query)
cle7 common.inc drupal_get_query_array($query)
elmsmedia7 common.inc drupal_get_query_array($query)
icor7 common.inc drupal_get_query_array($query)
meedjum_blog7 common.inc drupal_get_query_array($query)
mooc7 common.inc drupal_get_query_array($query)

Splits a URL-encoded query string into an array.

Parameters

$query: The query string to split.

Return value

An array of URL decoded couples $param_name => $value.

Related topics

6 calls to drupal_get_query_array()
bakery_login_return in sites/all/modules/ulmus/bakery/bakery.module
Custom return for errors during slave login process.
locale_language_url_rewrite_session in includes/locale.inc
Rewrite URLs for the Session language provider.
menu_edit_item_validate in modules/menu/menu.admin.inc
Validate form values for a menu link being added or edited.
page_manager_http_response_render in sites/all/modules/ulmus/ctools/page_manager/plugins/task_handlers/http_response.inc
system_update_7076 in modules/system/system.install
Convert menu_links query strings into arrays.

... See full list

File

includes/common.inc, line 457
Common functions that many Drupal modules will need to reference.

Code

function drupal_get_query_array($query) {
  $result = array();
  if (!empty($query)) {
    foreach (explode('&', $query) as $param) {
      $param = explode('=', $param);
      $result[$param[0]] = isset($param[1]) ? rawurldecode($param[1]) : '';
    }
  }
  return $result;
}