You are here

function ds_features_revert in Display Suite 6

Same name and namespace in other branches
  1. 6.3 includes/ds.features.inc \ds_features_revert()
  2. 6.2 includes/ds.features.inc \ds_features_revert()

Implementation of hook_features_export_revert().

File

includes/ds.features.inc, line 109
Features support.

Code

function ds_features_revert($module = NULL) {

  // Display settings.
  if ($display_settings = module_invoke($module, 'ds_default_settings')) {
    foreach ($display_settings as $ds_module => $settings) {
      foreach ($settings as $object_type => $setting) {
        variable_set($ds_module . '_display_settings_' . $object_type, $setting);
      }
    }
  }
}