Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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;
}
Comment | File | Size | Author |
---|---|---|---|
#1 | 1729880-1-omega_tools-unneeded_list_themes.patch | 1.2 KB | pfrenssen |
Comments
Comment #1
pfrenssenHere's a patch. I took the liberty to provide a docblock as well.
Comment #2
DamienMcKennaShort & sweet.