function features_revert_module

mooc7 features.module features_revert_module($module)

Revert a single features module.


string $module: A features module machine name. This module must be a features module and enabled.


modules/contrib/features/features.module, line 965
Module file for the features module, which enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together satisfy a certain use-case.


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));