### Eclipse Workspace Patch 1.0 #P drupal-6-dev Index: includes/menu.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/menu.inc,v retrieving revision 1.255.2.20 diff -u -r1.255.2.20 menu.inc --- includes/menu.inc 23 Sep 2008 10:22:35 -0000 1.255.2.20 +++ includes/menu.inc 4 Oct 2008 06:19:38 -0000 @@ -2315,6 +2315,18 @@ $item['access arguments'] = $parent['access arguments']; } } + // check for required load arguments + // we need to extract these into the serialize load_functions + if (!isset($item['load arguments']) && isset($parent['load arguments'])) { + // flag to prevent futher checks + $item['load arguments'] = $parent['load arguments']; + // copy over the load arguments into the items + $load_functions = array(); + foreach(unserialize($item['load_functions']) as $index => $function) { + $load_functions[$index][$function] = $parent['load arguments']; + } + $item['load_functions'] = serialize($load_functions); + } // Same for page callbacks. if (!isset($item['page callback']) && isset($parent['page callback'])) { $item['page callback'] = $parent['page callback'];