You are here

function hansel_switch_node_id_compare in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 hansel.switches.inc \hansel_switch_node_id_compare()

Callback for "node id" switch to compare a given value.

Parameters

array $arguments:

string $value:

Return value

boolean

2 string references to 'hansel_switch_node_id_compare'
hansel_hansel_switch_types in ./hansel.module
Implements hook_hansel_switch_types().
hook_hansel_switch_types in ./hansel.hooks.inc
Define switch types.

File

./hansel.switches.inc, line 94
Hansel switches

Code

function hansel_switch_node_id_compare($arguments, $value) {
  if (hansel_arg(0) == 'node' && is_numeric(hansel_arg(1))) {
    return hansel_arg(1) == $value;
  }
  return FALSE;
}