function menu_custom_configuration_rebuild in Configuration Management 7
Implements hook_configuration_export_rebuild().
1 call to menu_custom_configuration_rebuild()
- menu_custom_configuration_revert in includes/
configuration.menu.inc - Implements hook_configuration_export_revert().
File
- includes/
configuration.menu.inc, line 120
Code
function menu_custom_configuration_rebuild($identifiers, $module_name = 'configuration') {
if ($defaults = configuration_get_default('menu_custom', $module_name)) {
foreach ($defaults as $identifier => $menu) {
if (in_array($identifier, $identifiers) || !empty($identifiers) && $identifiers[0] == '#import_all') {
menu_save($menu);
}
}
}
}