Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443488
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443488
Commits
fa498602
Commit
fa498602
authored
15 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
#343898
by dww and JohnAlbin: Respect hidden property in themes to allow for theme testing.
parent
b4de609c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/system/system.admin.inc
+9
-1
9 additions, 1 deletion
modules/system/system.admin.inc
modules/update/update.compare.inc
+2
-2
2 additions, 2 deletions
modules/update/update.compare.inc
themes/tests/README.txt
+5
-0
5 additions, 0 deletions
themes/tests/README.txt
with
16 additions
and
3 deletions
modules/system/system.admin.inc
+
9
−
1
View file @
fa498602
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
modules/update/update.compare.inc
+
2
−
2
View file @
fa498602
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
themes/tests/README.txt
0 → 100644
+
5
−
0
View file @
fa498602
// $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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment