You are here

function hansel_switch_path_alias_info in Hansel breadcrumbs 7

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

Callback for "path alias" switch to generate the information line.

Parameters

array $arguments:

Return value

string

1 call to hansel_switch_path_alias_info()
hansel_switch_request_uri_info in ./hansel.switches.inc
Callback for "request uri" switch to generate the information line.
1 string reference to 'hansel_switch_path_alias_info'
hansel_hansel_switch_types in ./hansel.module
Implements hook_hansel_switch_types().

File

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

Code

function hansel_switch_path_alias_info($arguments) {
  $mode = empty($arguments['mode']) ? 0 : $arguments['mode'];
  switch ($mode) {
    case 0:
      return '(' . t('starts with') . ')';
    case 1:
      return '(' . t('ends with') . ')';
    case 2:
      return '(' . t('contains') . ')';
    case 3:
      return '(' . t('matches regular expression') . ')';
  }
}