From 3754a54ed62db2d01a1d46a161ce95688b9c942e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 23 Jun 2001 11:09:40 +0000 Subject: - Small but significant improvements to block and box.module which makes the ever-confusing "rehash modules" (see module.module) no longer needed, hence making module.module redundant. :-) - Removed module.module. - Renamed conf.module to system.module, and added some information about the available modules to system.module. - Various small changes. --- modules/block.module | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index 0de1f0146..07b078dd7 100644 --- a/modules/block.module +++ b/modules/block.module @@ -102,12 +102,26 @@ function block_admin_preview() { print $output; } +function block_init() { + $result = db_query("SELECT * FROM modules"); + while ($module = db_fetch_object($result)) { + module_rehash($module->name); + } + + foreach (module_list() as $name) { + module_rehash($name); + } +} + function block_admin() { global $user, $op, $edit; if (user_access($user, "add and edit blocks")) { + print "configure | preview | help
\n"; + block_init(); + switch ($op) { case "help": block_help(); -- cgit v1.2.3