You are here

function hansel_arg in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 hansel.module \hansel_arg()

Get a part of the query string.

Hansel extensions must use hansel_arg() instead of arg(). This is to make the testsuite work (found at admin/build/hansel/test).

Parameters

int $number Part number of the query string, starting with 0.:

Return value

string

15 calls to hansel_arg()
hansel_action_add_link_to_current_page_get_crumbs in ./hansel.actions.inc
Callback for the "add link to current page" breadcrumb action to generate the crumbs.
hansel_action_add_link_to_nodetype_get_crumbs in ./hansel.actions.inc
Callback for the "add link to nodetype" breadcrumb action to generate the crumbs.
hansel_action_add_link_to_node_get_crumbs in ./hansel.actions.inc
Callback for the "add link to node" breadcrumb action to generate the crumbs.
hansel_action_add_link_to_user_get_crumbs in ./hansel.actions.inc
Callback for the "add link to user" breadcrumb action to generate the crumbs.
hansel_action_add_parents_get_crumbs in ./hansel.actions.inc
Callback for the "add single link" breadcrumb action to generate the crumbs.

... See full list

File

./hansel.module, line 361
Hansel module

Code

function hansel_arg($number) {
  global $_hansel_test_path;
  if (!empty($_hansel_test_path)) {
    return arg($number, $_hansel_test_path);
  }
  return arg($number);
}