You are here

function page_manager_pages_features_revert in Features 6

Same name and namespace in other branches
  1. 7.2 includes/features.ctools.inc \page_manager_pages_features_revert()
  2. 7 includes/features.ctools.inc \page_manager_pages_features_revert()

Implementation of hook_features_revert() for page_manager.

File

includes/features.ctools.inc, line 313

Code

function page_manager_pages_features_revert($module) {
  if ($pages = features_get_default('page_manager_pages', $module)) {
    require_once drupal_get_path('module', 'ctools') . '/page_manager/plugins/tasks/page.inc';
    foreach ($pages as $page) {
      page_manager_page_delete($page);
    }
  }
}