Skip to content
Snippets Groups Projects
Commit fa498602 authored by Angie Byron's avatar Angie Byron
Browse files

#343898 by dww and JohnAlbin: Respect hidden property in themes to allow for theme testing.

parent b4de609c
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -62,7 +62,7 @@ function update_get_projects() {
* modules or themes are being processed (there is a setting to control if
* disabled code should be included in the Available updates report or not),
* those are only processed after $projects has been populated with
* information about the enabled code. 'Hidden' modules are always
* information about the enabled code. 'Hidden' modules and themes are always
* ignored. This function also records the latest change time on the .info
* files for each module or theme, which is important data which is used when
* deciding if the cached available update data should be invalidated.
......@@ -90,7 +90,7 @@ function _update_process_info_list(&$projects, $list, $project_type, $status) {
continue;
}
// Skip if it's a hidden module.
// Skip if it's a hidden module or theme.
if (!empty($file->info['hidden'])) {
continue;
}
......
// $Id$
The themes in this subdirectory are all used by the Drupal core testing
framework. They are not functioning themes that could be used on a real site
and are hidden in the administrative user interface.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment