diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-02-20 22:44:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-02-20 22:44:51 +0000 |
commit | 277ceae5150ccf3082ca99e73a82da58814ebaf5 (patch) | |
tree | 6f2cbb14ff94893dcbb6603ce47785e41f62c869 /modules/block.module | |
parent | 53deeb188a5b3d8158b9fa4f05c1b99c773820f1 (diff) | |
download | brdo-277ceae5150ccf3082ca99e73a82da58814ebaf5.tar.gz brdo-277ceae5150ccf3082ca99e73a82da58814ebaf5.tar.bz2 |
- New menu houskeeping. Prototyped by Zbynek.
The following modules need updating:
* glossary module
* feed module (Breyten's version)
* mailhandler module
* notify module
* project module
* smileys module
* admin module
* style module
* taxonomy_dhtml module
To avoid unexpected problems menu_add() is deprecated (it will print an
error message when used) and menu() should be used instead.
Diffstat (limited to 'modules/block.module')
-rw-r--r-- | modules/block.module | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/modules/block.module b/modules/block.module index 32a6eae89..850dc4e66 100644 --- a/modules/block.module +++ b/modules/block.module @@ -51,10 +51,10 @@ function block_link($type) { if ($type == "admin" && user_access("administer blocks")) { $help["block"] = "Blocks are the boxes visible in the side bars on the left- and right-hand side of the website. They are either exported by the Drupal or by any of the active modules. Adminstrators can enable or disable block, as well control the block placement by assigning them a region and/or by assigning each block (within a region) a weight to sort them vertically. The path setting lets you define which pages you want the specific blocks to be shown."; - menu_add("block management", url("admin/block"), "Block management", $help["block"], NULL, 2); - menu_add("add new block", url("admin/block/add"), "Create a new block", $help["block"], "block management", 2); - menu_add("preview placement", url("admin/block/preview"), "Preview the block placement", $help["block"], "block management", 3); - menu_add("help", url("admin/block/help"), "More information about blocks", NULL, "block management", 5); + menu("admin/block", "block management", block_admin, $help["block"], 3); + menu("admin/block/add", "create new block", block_admin, $help["block"], 2); + menu("admin/block/preview", "preview placement", block_admin, $help["block"], 3); + menu("admin/block/help", "help", block_help, NULL, 9); } } @@ -267,9 +267,6 @@ function block_admin() { } switch ($op) { - case "help": - block_help(); - break; case "preview": block_admin_preview(); break; @@ -335,4 +332,4 @@ function block_user($type, &$edit, &$user) { } } -?>
\ No newline at end of file +?> |