Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
77d695fe
Commit
77d695fe
authored
Jun 28, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#69341
by chx: remove some SQL queries from the Drupal bootstrap process.
parent
824e7d4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
includes/bootstrap.inc
includes/bootstrap.inc
+1
-1
includes/module.inc
includes/module.inc
+1
-5
No files found.
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