You are here

function seotools_seotools_seotools_feature_reset in Drupal SEO Tools 6

File

plugins/seotools.presets.inc, line 205

Code

function seotools_seotools_seotools_feature_reset() {
  module_load_include('inc', 'features', 'features.export');
  features_include();
  $module = 'seotools';
  $seotools = features_get_features($module);
  $revert = array();
  foreach ($seotools->info['features'] as $component => $status) {
    $revert[$module][] = $component;
    drupal_set_message(t('Reverted all <strong>!component</strong> components for <strong>!module</strong>.', array(
      '!component' => $component,
      '!module' => $module,
    )));
  }
  features_revert($revert);
}