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/node/node.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/node/node.module')
-rw-r--r-- | modules/node/node.module | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index bc96f8950..22a095f53 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -466,14 +466,15 @@ function node_link($type, $node = 0, $main = 0) { } if ($type == "admin" && user_access("administer nodes")) { - $search = "On this page you can search for a post. For example, one may search for 'br' and Drupal might return 'bread brakers', 'our daily bread' and 'brenda'."; + $help["search"] = "On this page you can search for a post. For example, one may search for 'br' and Drupal might return 'bread brakers', 'our daily bread' and 'brenda'."; - menu_add("content management", url("admin/node"), "Content management.", NULL, NULL); - menu_add("submit new content", url("node/add"), "Submit new content.", NULL, "content management", -1); - menu_add("new or updated posts", url("admin/node/nodes/0"), "Display all new or updated posts.", NULL, "content management", 0); - menu_add("posts that await approval", url("admin/node/nodes/1"), "Display posts that await approval.", NULL, "content management", 0); - menu_add("search content", url("admin/node/search"), "Search a post.", $search, "content management", 5); - menu_add("help", url("admin/node/help"), "More information about content management.", NULL, "content management", 7); + menu("admin/node", "node management", "node_admin"); + menu("admin/node/nodes", "post overview"); + menu("admin/node/nodes/0", "new or updated posts", "node_admin", NULL, 0); + menu("admin/node/nodes/1", "posts that away approval", "node_admin", NULL, 1); + menu("admin/node/search", "search post", "node_admin", $help["search"], 8); + menu("admin/node/help", "help", "node_help", NULL, 9); + menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1); } return $links ? $links : array(); @@ -653,9 +654,6 @@ function node_admin() { */ switch ($op) { - case "help": - print node_help(); - break; case "search": print search_type("node", url("admin/node/search")); break; @@ -1316,4 +1314,4 @@ function node_nodeapi(&$node, $op, $arg = 0) { } } -?>
\ No newline at end of file +?> |