function hansel_switch_php_argument_compare in Hansel breadcrumbs 7
Same name and namespace in other branches
- 8 hansel.switches.inc \hansel_switch_php_argument_compare()
Callback for "PHP code" switch to compare a given value.
Parameters
array $arguments:
string $value:
Return value
boolean
1 string reference to 'hansel_switch_php_argument_compare'
- hansel_hansel_switch_types in ./
hansel.module - Implements hook_hansel_switch_types().
File
- ./
hansel.switches.inc, line 81 - Hansel switches
Code
function hansel_switch_php_argument_compare($arguments, $value) {
if (module_exists('php')) {
return php_eval($arguments['php_argument']) == $value;
}
}