The call to list_themes() is not needed here:

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

pfrenssen’s picture

Status: Active » Needs review
FileSize
1.2 KB

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

DamienMcKenna’s picture

Status: Needs review » Reviewed & tested by the community

Short & sweet.