You are here

function popupblock_features_rebuild in Popup 7

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

Implementation of hook_features_rebuild().

1 call to popupblock_features_rebuild()
popupblock_features_revert in modules/popup_block/includes/popup_block.features.inc
Implementation of hook_features_revert().

File

modules/popup_block/includes/popup_block.features.inc, line 84

Code

function popupblock_features_rebuild($module) {
  $settings = _popup_block_settings();
  $rebuild_blocks = module_invoke_all('popupblock_defaults');
  if (!empty($rebuild_blocks)) {
    foreach ($rebuild_blocks as $name => $rebuild_block) {
      $settings[$name] = $rebuild_block;
    }
  }
  _popup_block_settings($settings);
}