menu_tail_load

function menu_tail_load

menu_tail_load($arg, &$map, $index)

Loads the path as one string relative to the current index.

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

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

See also

search_menu().

Related topics

File

includes/menu.inc, line 852
API for the Drupal menu system.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!menu.inc/function/menu_tail_load/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部