You are here

function hansel_switch_url_argument_info in Hansel breadcrumbs 7

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

Callback for "url argument" switch to generate the information line.

Parameters

array $arguments:

Return value

string

2 string references to 'hansel_switch_url_argument_info'
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 67
Hansel switches

Code

function hansel_switch_url_argument_info($arguments) {
  if (empty($arguments)) {
    return '1';
  }
  return $arguments['argument'];
}