Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b0676cf3
Commit
b0676cf3
authored
Apr 06, 2007
by
Dries
Browse files
- Patch
#134161
by chx: no menu tabs for themes.
parent
ec3c0716
Changes
2
Show whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
b0676cf3
...
...
@@ -199,13 +199,13 @@ function _theme_build_registry($theme, $theme_engine) {
* An array of the currently available themes.
*/
function
list_themes
(
$refresh
=
FALSE
)
{
static
$list
;
static
$list
=
array
()
;
if
(
$refresh
)
{
unset
(
$list
);
$list
=
array
(
);
}
if
(
!
$list
)
{
if
(
empty
(
$list
)
)
{
$list
=
array
();
$result
=
db_query
(
"SELECT * FROM
{
system
}
WHERE type = 'theme'"
);
while
(
$theme
=
db_fetch_object
(
$result
))
{
...
...
modules/system/system.module
View file @
b0676cf3
...
...
@@ -1258,6 +1258,7 @@ function system_themes_form_submit($form_id, $form_values) {
db_query
(
"UPDATE
{
system
}
SET status = 1 WHERE type = 'theme' AND name = 'garland'"
);
}
list_themes
(
TRUE
);
menu_rebuild
();
drupal_set_message
(
t
(
'The configuration options have been saved.'
));
return
'admin/build/themes'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment