function themekey_get_q in ThemeKey 6.3
Same name and namespace in other branches
- 6.4 themekey.module \themekey_get_q()
- 6.2 themekey.module \themekey_get_q()
- 7.3 themekey.module \themekey_get_q()
- 7 themekey.module \themekey_get_q()
- 7.2 themekey.module \themekey_get_q()
Returns the content of $_GET['q'] as expected. Therefore, $_GET['q'] gets transformed if necessary. E.g., Ajax Views rewrites the q parameter.
Return value
string
3 calls to themekey_get_q()
- themekey_get_global_parameters in ./
themekey_base.inc - Assigns global parameters' values to ThemeKey properties. Therefore, it calls hook_themekey_global()
- themekey_match_path in ./
themekey_base.inc - Detects if a ThemeKey rule for property drupal:path matches to the current page request.
- themekey_system_themekey_global in modules/
themekey.system.inc - Implements hook_themekey_global().
File
- ./
themekey.module, line 283 - ThemeKey is designed as a generic theme switching module.
Code
function themekey_get_q() {
static $get_q = '';
if (empty($get_q)) {
if ('views/ajax' == $_GET['q'] && !empty($_GET['view_path'])) {
// required for ajax views. see http://drupal.org/node/567222
$get_q = $_GET['view_path'];
}
else {
$get_q = $_GET['q'];
}
}
return $get_q;
}