The call to list_themes() is not needed here:

<?php
function omega_tools_theme_reset_confirm_submit($form, &$form_state) {
 
$themes = list_themes();
 
$theme = $form_state['theme'];
 
omega_tools_revert_theme_settings($theme);
 
$form_state['redirect'] = 'admin/appearance/settings/' . $theme;
}
?>

Comments

Status:Active» Needs review
StatusFileSize
new1.2 KB

Here's a patch. I took the liberty to provide a docblock as well.

Status:Needs review» Reviewed & tested by the community

Short & sweet.