function menu_links_configuration_rebuild in Configuration Management 7
Implements hook_configuration_export_rebuild().
1 call to menu_links_configuration_rebuild()
- menu_links_configuration_revert in includes/
configuration.menu.inc - Implements hook_configuration_export_revert().
File
- includes/
configuration.menu.inc, line 233
Code
function menu_links_configuration_rebuild($identifiers, $module_name = 'configuration') {
if ($menu_links = configuration_get_default('menu_links', $module_name)) {
$links = array();
foreach ($identifiers as $identifier) {
if (array_key_exists($identifier, $menu_links) || !empty($identifiers) && $identifiers[0] == '#import_all') {
$links[$identifier] = $menu_links[$identifier];
}
}
menu_links_configuration_rebuild_ordered($links);
}
}