function panels_page_construct_dynamic_menu_link in Panels 6.2
1 call to panels_page_construct_dynamic_menu_link()
- _panels_page_create_menu_structure in panels_page/
panels_page.menu.inc
File
- panels_page/
panels_page.menu.inc, line 283 - panels_page.menu.inc
Code
function panels_page_construct_dynamic_menu_link(&$items, $panel_page, $map) {
$type = _panels_page_menu_type($panel_page);
$primary_wildcard = array_search('%', $map);
// panels_page_construct_menu_item_metadata($items, $panel_page, PANELS_IS_DYNAMIC | $panel_page->load_flags);
panels_page_construct_menu_item_metadata($items, $panel_page, PANELS_IS_DYNAMIC);
$page_args = array(
$panel_page->name,
$primary_wildcard,
);
// Construct the dynamic menu router item. If/when we get to multiple
// panels_pages per dynamic path, we needn't worry about overwriting here.
_panels_page_construct_dynamic_menu_link($items, $panel_page, $page_args, $type);
// FIXME parents are borked
_panels_page_construct_parent_menu_item($items, $panel_page, $panel_page->path, $type);
}