function themekey_get_q in ThemeKey 7.2
Same name and namespace in other branches
- 6.4 themekey.module \themekey_get_q()
- 6.2 themekey.module \themekey_get_q()
- 6.3 themekey.module \themekey_get_q()
- 7.3 themekey.module \themekey_get_q()
- 7 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
2 calls to themekey_get_q()
- 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 258 - 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;
}