summaryrefslogtreecommitdiff
path: root/modules/block.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/block.module')
-rw-r--r--modules/block.module16
1 files changed, 13 insertions, 3 deletions
diff --git a/modules/block.module b/modules/block.module
index 381d31c78..df91c0cb6 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -53,6 +53,12 @@ function block_help($section = "admin/help#block") {
return $output;
}
+function block_help_page() {
+ print theme("header");
+ print block_help();
+ print theme("footer");
+}
+
function block_perm() {
return array("administer blocks");
}
@@ -63,7 +69,7 @@ function block_link($type) {
menu("admin/system/block", t("blocks"), "block_admin", 3);
menu("admin/system/block/add", t("new block"), "block_admin", 2);
menu("admin/system/block/preview", t("preview placement"), "block_admin", 3);
- menu("admin/system/block/help", t("help"), "block_help", 9);
+ menu("admin/system/block/help", t("help"), "block_help_page", 9);
}
}
@@ -306,10 +312,14 @@ function block_admin() {
$output .= block_admin_display();
}
- return $output;
+ print theme("header");
+ print $output;
+ print theme("footer");
}
else {
- return message_access();
+ print theme("header");
+ print message_access();
+ print theme("footer");
}
}