From 22c889e7c05b1c2dd98ad5e6b3547234a3f6596f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Oct 2003 18:16:41 +0000 Subject: - Help system improvements: eliminated the _system hook. Patch by Michael. - Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael. --- modules/block.module | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index ce0a02209..40c26c036 100644 --- a/modules/block.module +++ b/modules/block.module @@ -36,7 +36,7 @@ function block_help($section = "admin/block/help") { $output .= "

For more in-depth examples, we recommend that you check the existing boxes and use them as a starting point.

"; $output = t($output, array("%pcre" => "". t("Perl-Compatible Regular Expressions (PCRE)") ."")); break; - case 'admin/system/modules': + case 'admin/system/modules#description': $output = t("Controls the boxes that are displayed around the main content."); break; case 'admin/system/block': @@ -53,14 +53,6 @@ function block_help($section = "admin/block/help") { return $output; } -function block_system($field){ - $output = ""; - - if ($field == "description") { $output = block_help("admin/system/modules"); } - - return $output; -} - function block_perm() { return array("administer blocks"); } @@ -337,7 +329,7 @@ function block_user($type, &$edit, &$user) { while ($block = db_fetch_object($result)) { $data = module_invoke($block->module, "block", "list"); if ($data[$block->delta]["info"]) { - $form .= "".$data[$block->delta]["info"]."". form_checkbox(NULL, "block][$block->module][$block->delta", 1, $user->block[$block->module][$block->delta]) ."\n"; + $form .= "". $data[$block->delta]["info"] ."". form_checkbox(NULL, "block][$block->module][$block->delta", 1, $user->block[$block->module][$block->delta]) ."\n"; } } -- cgit v1.2.3