You are here

function themekey_query_string in ThemeKey 7.3

Returns the content of $_SERVER['QUERY_STRING'] as expected. Therefore, paramter 'q' gets removed if present.

Return value

string

2 calls to themekey_query_string()
themekey_dummy2query_string in modules/themekey.system.inc
ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).
themekey_redirect_match_rules in themekey_redirect/themekey_redirect.module

File

./themekey.module, line 439
ThemeKey is designed as a generic theme-switching module.

Code

function themekey_query_string() {
  return trim(preg_replace("/q=[^&]*/", '', $_SERVER['QUERY_STRING']), '&');
}