Drupal 5.20-dev xxxx-xx-xx
-----------------------
+- The 'access' element for hook_menu() now interprets Drupal 6 style values,
+ like array('access content').
Drupal 5.19, 2009-07-01
-----------------------
$temp_mid = -1;
foreach ($menu_item_list as $item) {
+ // Protect against D6 style access
+ if (isset($item['access']) && is_array($item['access']) && count($item['access']) == 1 && isset($item['access'][0]) && is_string($item['access'][0])) {
+ $item['access'] = FALSE;
+ }
if (!isset($item['path'])) {
$item['path'] = '';
}
$new_items = array();
foreach ($menu_item_list as $item) {
+ // Protect against D6 style access
+ if (isset($item['access']) && is_array($item['access']) && count($item['access']) == 1 && isset($item['access'][0]) && is_string($item['access'][0])) {
+ $item['access'] = FALSE;
+ }
if (isset($item['callback'])) {
$_menu['callbacks'][$item['path']] = array('callback' => $item['callback']);
if (isset($item['callback arguments'])) {