function tb_megamenu_sync_config_all in The Better Mega Menu 7
2 calls to tb_megamenu_sync_config_all()
- tb_megamenu_update_megamenus in ./
tb_megamenu.functions.inc - Update items in tb_megamenus table.
- template_preprocess_tb_megamenu in ./
tb_megamenu.themes.inc
File
- ./
tb_megamenu.functions.inc, line 219
Code
function tb_megamenu_sync_config_all($items, &$menu_config, $section) {
foreach ($items as $item) {
$mlid = $item['link']['mlid'];
$item_config = isset($menu_config[$mlid]) ? $menu_config[$mlid] : array();
if (!$item['link']['hidden'] && (!empty($item['below']) || !empty($item_config))) {
tb_megamenu_sync_config($item['below'], $item_config, $mlid, $section);
$menu_config[$mlid] = $item_config;
tb_megamenu_sync_config_all($item['below'], $menu_config, $section);
}
}
}