function page_manager_pages_features_revert in Features 7
Same name and namespace in other branches
- 6 includes/features.ctools.inc \page_manager_pages_features_revert()
- 7.2 includes/features.ctools.inc \page_manager_pages_features_revert()
Implements hook_features_revert() for page_manager.
File
- includes/
features.ctools.inc, line 350
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);
}
}
}