You are here

function _panels_page_rebuild_menu_map in Panels 6.2

Rebuild a drupal menu system-style $map using data passed in to the panels callback handlers from the menu system.

Parameters

array $map: A incomplete menu map - it has only $_GET['q'] data initially - that this function will rebuild.

array $load_objects: The set of menu-loader-returned objects provided by the menu system to the panels callback handlers.

array $positions: The positions within the path map (i.e., arg(0), arg(1), etc...) that the loader objects correspond to.

Return value

array $map The rebuilt menu map.

1 call to _panels_page_rebuild_menu_map()
_panels_page_master_loader in panels_page/panels_page.module
Determine the render-time behavior of panels_page.

File

panels_page/panels_page.module, line 395
panels_page.module

Code

function _panels_page_rebuild_menu_map($load_objects, $positions) {
  $map = explode('/', $_GET['q']);
  foreach ($positions as $key => $position) {
    $map[$position] = $load_objects[$key];
  }
  return $map;
}