diff options
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index a69e84b3a..f0abb2ce8 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -63,6 +63,13 @@ function node_help($section = "admin/help#node") { return $output; } +function node_help_page() { + print theme("header"); + print node_help(); + print theme("footer"); +} + + /* ** Accepts a DB result object which can be used to fetch node objects. ** Returns an HTML list suitable as content for a block. @@ -568,10 +575,14 @@ function node_link($type, $node = 0, $main = 0) { if (user_access("administer nodes")) { menu("admin/node", t("content"), "node_admin"); menu("admin/node/search", t("search"), "node_admin", 8); - menu("admin/node/help", t("help"), "node_help", 9); + menu("admin/node/help", t("help"), "node_help_page", 9); menu("admin/node/edit", t("edit post"), "node_admin", 0, 1); menu("admin/node/settings", t("settings"), "node_admin", 8); } + + if (user_access("access content")) { + menu("node", t("content"), "node_page", 0, 1); + } } return $links; @@ -920,10 +931,14 @@ function node_admin() { default: $output = node_admin_nodes(); } - return $output; + print theme("header"); + print $output; + print theme("footer"); } else { - return message_access(); + print theme("header"); + print message_access(); + print theme("footer"); } } |