function features_revert_module in Features 7.2
Revert a single features module.
Parameters
string $module: A features module machine name. This module must be a features module and enabled.
File
- ./
features.module, line 1284 - Main *.module file for the 'features' module.
Code
function features_revert_module($module) {
if (($feature = feature_load($module, TRUE)) && module_exists($module)) {
$components = array();
foreach (array_keys($feature->info['features']) as $component) {
if (features_hook($component, 'features_revert')) {
$components[] = $component;
}
}
features_revert(array(
$module => $components,
));
}
}