You are here

function custom_formatters_features_revert in Custom Formatters 6

Implementation of hook_features_revert().

File

includes/features.inc, line 67
Provides Custom Formatters integration with the Features module.

Code

function custom_formatters_features_revert($module) {
  if ($default_formatters = features_get_default('custom_formatters', $module)) {
    foreach (array_keys($default_formatters) as $default_formatter) {
      if ($formatter = custom_formatters_formatter($default_formatter)) {
        db_query("DELETE FROM {formatters} WHERE name = '%s'", $default_formatter);
        custom_formatters_clear_cache();
      }
    }
  }
}