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/box.module | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'modules/box.module') 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 "add new box | overview | help
\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(); -- cgit v1.2.3