function hansel_switch_path_alias_compare in Hansel breadcrumbs 7
Same name and namespace in other branches
- 8 hansel.switches.inc \hansel_switch_path_alias_compare()
Callback for "path alias" switch to compare a given value.
Parameters
array $arguments:
string $value:
Return value
boolean
1 string reference to 'hansel_switch_path_alias_compare'
- hansel_hansel_switch_types in ./
hansel.module - Implements hook_hansel_switch_types().
File
- ./
hansel.switches.inc, line 173 - Hansel switches
Code
function hansel_switch_path_alias_compare($arguments, $value) {
if (!module_exists('path')) {
return FALSE;
}
$alias = drupal_get_path_alias(hansel_path());
return _hansel_switch_string_compare($arguments, $value, $alias);
}