summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-12 21:46:14 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-12 21:46:14 +0000
commit4ad174c4115f4e5aec54310c815c7a8019fab640 (patch)
tree2962ecd57a25bccf93fb911bc6c883abb53a3db1 /includes/module.inc
parent127c6fd46549b0f785b1bc9bc216042c2d1dc5ac (diff)
downloadbrdo-4ad174c4115f4e5aec54310c815c7a8019fab640.tar.gz
brdo-4ad174c4115f4e5aec54310c815c7a8019fab640.tar.bz2
- Eliminated system_init(), the session stuff, and made it possible to
rebuild the menu.
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc
index a3a1be482..a8214e49c 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -41,9 +41,13 @@ function module_invoke_all($hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL
}
// return array of module names (includes lazy module loading):
-function module_list() {
+function module_list($refresh = 0) {
static $list;
+ if ($refresh) {
+ unset($list);
+ }
+
if (!$list) {
$list = array("system" => "system", "user" => "user", "watchdog" => "watchdog");
$result = db_query("SELECT name, filename FROM system WHERE type = 'module' AND status = '1' ORDER BY name");