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/box.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/box.module')
-rw-r--r-- | modules/box.module | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/box.module b/modules/box.module index 025007620..c8e4330e2 100644 --- a/modules/box.module +++ b/modules/box.module @@ -94,10 +94,6 @@ function box_admin_delete($id) { db_query("DELETE FROM boxes WHERE id = $id"); } -function box_admin_rehash() { - module_rehash_blocks("box"); -} - function box_admin_edit($id) { $type = array(0 => "ASCII", 1 => "HTML", 2 => "PHP"); @@ -152,16 +148,16 @@ function box_admin() { print "<SMALL><A HREF=\"admin.php?mod=box&op=add\">add new box</A> | <A HREF=\"admin.php?mod=box\">overview</A> | <A HREF=\"admin.php?mod=box&op=help\">help</A></SMALL><HR>\n"; + block_init(); + switch ($op) { case "Add box": box_admin_add(check_input($subject), check_code($content), check_input($info), check_input($link), check_input($type)); box_admin_display(); - box_admin_rehash(); break; case "Save box": box_admin_save(check_input($id), check_input($subject), check_code($content), check_input($info), check_input($link), check_input($type)); box_admin_display(); - box_admin_rehash(); break; case "help": box_help(); @@ -174,7 +170,6 @@ function box_admin() { break; case "delete": box_admin_delete(check_input($id)); - box_admin_rehash(); // fall through default: box_admin_display(); |