You are here

function menu_custom_features_rebuild in Features 7.2

Same name and namespace in other branches
  1. 6 includes/features.menu.inc \menu_custom_features_rebuild()
  2. 7 includes/features.menu.inc \menu_custom_features_rebuild()

Implements hook_features_rebuild().

1 call to menu_custom_features_rebuild()
menu_custom_features_revert in includes/features.menu.inc
Implements hook_features_revert().

File

includes/features.menu.inc, line 134
Features integration for 'menu' module.

Code

function menu_custom_features_rebuild($module) {
  if ($defaults = features_get_default('menu_custom', $module)) {
    foreach ($defaults as $menu) {
      menu_save($menu);
    }
  }
}