Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
5be22acd
Commit
5be22acd
authored
Aug 31, 2012
by
Dries Buytaert
Browse files
- Patch
#632100
by rjgoldsborough, sun: use Stark as default theme for Minimal install profile.
parent
6ed142d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/profiles/minimal/minimal.install
View file @
5be22acd
...
...
@@ -12,25 +12,10 @@
* @see system_install()
*/
function
minimal_install
()
{
// Enable Bartik theme and set it as default theme instead of Stark.
// @see system_install()
$default_theme
=
'bartik'
;
variable_set
(
'theme_default'
,
$default_theme
);
theme_enable
(
array
(
$default_theme
));
theme_disable
(
array
(
'stark'
));
$default_theme
=
'stark'
;
// Enable some standard blocks.
$values
=
array
(
array
(
'module'
=>
'system'
,
'delta'
=>
'main'
,
'theme'
=>
$default_theme
,
'status'
=>
1
,
'weight'
=>
0
,
'region'
=>
'content'
,
'pages'
=>
''
,
'cache'
=>
-
1
,
),
array
(
'module'
=>
'user'
,
'delta'
=>
'login'
,
...
...
@@ -61,16 +46,6 @@ function minimal_install() {
'pages'
=>
''
,
'cache'
=>
-
1
,
),
array
(
'module'
=>
'system'
,
'delta'
=>
'help'
,
'theme'
=>
$default_theme
,
'status'
=>
1
,
'weight'
=>
0
,
'region'
=>
'help'
,
'pages'
=>
''
,
'cache'
=>
-
1
,
),
);
$query
=
db_insert
(
'block'
)
->
fields
(
array
(
'module'
,
'delta'
,
'theme'
,
'status'
,
'weight'
,
'region'
,
'pages'
,
'cache'
));
foreach
(
$values
as
$record
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment