diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-06 01:38:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-06 01:38:55 +0000 |
commit | fa498602e4ca5824598f687268d37a442de779c7 (patch) | |
tree | 645fdb34eda8325c063330020d38b2a6f06d6d13 /modules/system/system.admin.inc | |
parent | b4de609c6d5be5183b5a2b3b11fdc53e431c948c (diff) | |
download | brdo-fa498602e4ca5824598f687268d37a442de779c7.tar.gz brdo-fa498602e4ca5824598f687268d37a442de779c7.tar.bz2 |
#343898 by dww and JohnAlbin: Respect hidden property in themes to allow for theme testing.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 24f0b888d..b7537b7a8 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -199,8 +199,16 @@ function system_settings_overview() { * @see system_themes_form_submit() */ function system_themes_form() { - + // Get current list of themes. $themes = system_get_theme_data(); + + // Remove hidden themes from the display list. + foreach ($themes as $theme_key => $theme) { + if (!empty($theme->info['hidden'])) { + unset($themes[$theme_key]); + } + } + uasort($themes, 'system_sort_modules_by_info_name'); $status = array(); |