You are here

function omega_tools_revert_theme_settings in Omega Tools 7.3

@todo

2 calls to omega_tools_revert_theme_settings()
omega_tools_theme_export_submit in includes/omega_tools.admin.inc
@todo
omega_tools_theme_reset_confirm_submit in includes/omega_tools.admin.inc
@todo

File

./omega_tools.module, line 525

Code

function omega_tools_revert_theme_settings($theme) {
  $themes = list_themes();
  variable_del('theme_' . $theme . '_settings');
  drupal_theme_rebuild();
  system_rebuild_theme_data();
  watchdog('theme', t('Theme settings for %theme reset to default values.', array(
    '%theme' => $themes[$theme]->info['name'],
  )));
  drupal_set_message(t('The theme settings for %theme have been purged from the database and are now being loaded from the .info file of this theme.', array(
    '%theme' => $themes[$theme]->info['name'],
  )));
}