diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-23 11:09:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-23 11:09:40 +0000 |
commit | 3754a54ed62db2d01a1d46a161ce95688b9c942e (patch) | |
tree | a10386b199fb9633b7e4fd1c155375a1595e4e4a /modules/block.module | |
parent | 3e075294febed760b7e59a8b8a59dc2ebe8ccf7b (diff) | |
download | brdo-3754a54ed62db2d01a1d46a161ce95688b9c942e.tar.gz brdo-3754a54ed62db2d01a1d46a161ce95688b9c942e.tar.bz2 |
- 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.
Diffstat (limited to 'modules/block.module')
-rw-r--r-- | modules/block.module | 14 |
1 files changed, 14 insertions, 0 deletions
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 "<SMALL><A HREF=\"admin.php?mod=block\">configure</A> | <A HREF=\"admin.php?mod=block&op=preview\">preview</A> | <A HREF=\"admin.php?mod=block&op=help\">help</A></SMALL><HR>\n"; + block_init(); + switch ($op) { case "help": block_help(); |