You are here

function popupmenu_features_rebuild in Popup 8

Same name and namespace in other branches
  1. 7 modules/popup_menu/includes/popup_menu.features.inc \popupmenu_features_rebuild()
  2. 7.x modules/popup_menu/includes/popup_menu.features.inc \popupmenu_features_rebuild()
  3. 6.x modules/popup_menu/includes/popup_menu.features.inc \popupmenu_features_rebuild()

Implementation of hook_features_rebuild().

1 call to popupmenu_features_rebuild()
popupmenu_features_revert in modules/popup_menu/includes/popup_menu.features.inc
Implementation of hook_features_revert().

File

modules/popup_menu/includes/popup_menu.features.inc, line 86

Code

function popupmenu_features_rebuild($module) {
  module_load_include('inc', 'popup_menu', 'includes/popup_menu.util');
  $settings = _popup_menu_settings();
  $rebuild_menus = module_invoke_all('popupmenu_defaults');
  if (!empty($rebuild_menus)) {
    foreach ($rebuild_menus as $name => $rebuild_menu) {
      $settings[$name] = $rebuild_menu;
    }
  }
  _popup_menu_settings($settings);
}