summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/module.inc b/includes/module.inc
index b3c076250..03bc4f8a1 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -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");
}