function _panels_page_create_menu_structure in Panels 6.2
1 call to _panels_page_create_menu_structure()
- panels_page_create_menu_structure in panels_page/
panels_page.menu.inc
File
- panels_page/
panels_page.menu.inc, line 261 - panels_page.menu.inc
Code
function _panels_page_create_menu_structure() {
panels_load_include('plugins');
$items = array();
$panels = panels_page_load_all();
foreach ($panels as $panel_page) {
if (empty($panel_page->disabled)) {
$map = explode('/', $panel_page->path);
if (strpos($panel_page->path, '%') === FALSE) {
panels_page_construct_static_menu_link($items, $panel_page, $map);
}
elseif (!empty($panel_page->arguments)) {
panels_page_construct_dynamic_menu_link($items, $panel_page, $map);
}
}
}
return $items;
}