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
77d695fe
Commit
77d695fe
authored
Jun 28, 2006
by
Dries
Browse files
- Patch
#69341
by chx: remove some SQL queries from the Drupal bootstrap process.
parent
824e7d4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
77d695fe
...
...
@@ -339,7 +339,7 @@ function page_get_cache() {
* The name of the bootstrap hook we wish to invoke.
*/
function
bootstrap_invoke_all
(
$hook
)
{
foreach
(
module_list
(
FALS
E
,
TRUE
)
as
$module
)
{
foreach
(
module_list
(
TRU
E
,
TRUE
)
as
$module
)
{
drupal_load
(
'module'
,
$module
);
module_invoke
(
$module
,
$hook
);
}
...
...
includes/module.inc
View file @
77d695fe
...
...
@@ -45,12 +45,8 @@ function module_list($refresh = FALSE, $bootstrap = TRUE, $sort = FALSE) {
static
$list
,
$sorted_list
;
if
(
$refresh
)
{
unset
(
$sorted_list
);
$list
=
array
();
$sorted_list
=
NULL
;
}
if
(
!
$list
)
{
$list
=
array
(
'filter'
=>
'filter'
,
'node'
=>
'node'
,
'system'
=>
'system'
,
'user'
=>
'user'
,
'watchdog'
=>
'watchdog'
);
if
(
$bootstrap
)
{
$result
=
db_query
(
"SELECT name, filename, throttle, bootstrap FROM
{
system
}
WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC"
);
}
...
...
Write
Preview
Markdown
is supported
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