function nitro_revert_theme_settings in Arctica Nitro 7
Reverts theme settings to defaults in the .info file
1 call to nitro_revert_theme_settings()
- nitro_theme_reset_confirm_submit in includes/
nitro.admin.inc - @todo
File
- ./
nitro.module, line 108 - Module file for Arctica Nitro.
Code
function nitro_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 removed from the database and are now being loaded from the .info file of this theme.', array(
'%theme' => $themes[$theme]->info['name'],
)));
}