| 1 |
<?php |
<?php |
| 2 |
// $Id: menu.inc,v 1.146.2.1 2007/06/17 01:50:50 drumm Exp $ |
// $Id: menu.inc,v 1.146.2.2 2008/02/11 05:26:53 drumm Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1055 |
$temp_mid = -1; |
$temp_mid = -1; |
| 1056 |
|
|
| 1057 |
foreach ($menu_item_list as $item) { |
foreach ($menu_item_list as $item) { |
| 1058 |
|
// Protect against D6 style access |
| 1059 |
|
if (isset($item['access']) && is_array($item['access']) && count($item['access']) == 1 && isset($item['access'][0]) && is_string($item['access'][0])) { |
| 1060 |
|
$item['access'] = FALSE; |
| 1061 |
|
} |
| 1062 |
if (!isset($item['path'])) { |
if (!isset($item['path'])) { |
| 1063 |
$item['path'] = ''; |
$item['path'] = ''; |
| 1064 |
} |
} |
| 1229 |
$new_items = array(); |
$new_items = array(); |
| 1230 |
|
|
| 1231 |
foreach ($menu_item_list as $item) { |
foreach ($menu_item_list as $item) { |
| 1232 |
|
// Protect against D6 style access |
| 1233 |
|
if (isset($item['access']) && is_array($item['access']) && count($item['access']) == 1 && isset($item['access'][0]) && is_string($item['access'][0])) { |
| 1234 |
|
$item['access'] = FALSE; |
| 1235 |
|
} |
| 1236 |
if (isset($item['callback'])) { |
if (isset($item['callback'])) { |
| 1237 |
$_menu['callbacks'][$item['path']] = array('callback' => $item['callback']); |
$_menu['callbacks'][$item['path']] = array('callback' => $item['callback']); |
| 1238 |
if (isset($item['callback arguments'])) { |
if (isset($item['callback arguments'])) { |