You are here

function popupformat_features_rebuild in Popup 7

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

Implementation of hook_features_rebuild().

1 call to popupformat_features_rebuild()
popupformat_features_revert in modules/popup_ui/includes/popup_ui.features.inc
Implementation of hook_features_revert().

File

modules/popup_ui/includes/popup_ui.features.inc, line 104

Code

function popupformat_features_rebuild($module) {
  module_load_include('inc', 'popup_ui', 'includes/popup_ui.admin');
  $formats = _popup_ui_formatter_settings();
  $rebuild_formats = module_invoke_all('popupformat_defaults');
  if (!empty($rebuild_formats)) {
    foreach ($rebuild_formats as $name => $rebuild_format) {
      $formats[$name] = $rebuild_format;
    }
  }
  _popup_ui_formatter_settings($formats);
}