function hansel_path in Hansel breadcrumbs 8
Same name and namespace in other branches
- 7 hansel.module \hansel_path()
Get the query string
Hansel extensions must use hansel_path() instead of $_GET['q']. This is to make the testsuite work (found at admin/build/hansel/test).
Return value
string
1 call to hansel_path()
- hansel_switch_path_alias_compare in ./
hansel.switches.inc - Callback for "path alias" switch to compare a given value.
File
- ./
hansel.module, line 377 - Hansel module
Code
function hansel_path() {
global $_hansel_test_path;
if (!empty($_hansel_test_path)) {
return $_hansel_test_path;
}
return isset($_GET['q']) ? $_GET['q'] : '';
}