You are here

function homebox_features_revert in Homebox 6.3

Same name and namespace in other branches
  1. 6.2 homebox.features.inc \homebox_features_revert()
  2. 7.3 homebox.features.inc \homebox_features_revert()
  3. 7.2 homebox.features.inc \homebox_features_revert()

Implementation of hook_features_revert().

File

./homebox.features.inc, line 84
Features support.

Code

function homebox_features_revert($module = NULL) {

  // Get homebox pages from feature
  if (module_hook($module, 'homebox')) {
    $pages = module_invoke($module, 'homebox');
    foreach ($pages as $name => $settings) {
      homebox_delete_page($name);
    }
    drupal_flush_all_caches();
  }
}