diff options
Diffstat (limited to 'modules/node')
-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 +?> |