menu_tail_load

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 menu_tail_load($arg, &$map, $index)

Loads path as one string from the argument we are currently at.

To use this load function, you must specify the load arguments in the router item as:

<?php
$item['load arguments'] = array('%map', '%index');
?>

See also

search_menu().

Related topics

Code

includes/menu.inc, line 827

<?php
function menu_tail_load($arg, &$map, $index) {
  $arg = implode('/', array_slice($map, $index));
  $map = array_slice($map, 0, $index);
  return $arg;
}
?>