From 8d2b1238b4d8ebd57848fde665b7f93c3a03cd90 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 29 May 2003 09:15:00 +0000 Subject: - Michael Frankowski's excellent help text improvements! --- modules/node.module | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index b01c05324..1c927e753 100644 --- a/modules/node.module +++ b/modules/node.module @@ -4,18 +4,29 @@ function node_help() { global $mod; - if ($mod == "node") { + $output .= "

Nodes

The core of the Drupal system is the node. All of the contents of the system are placed in nodes, or extensions of nodes."; + $output .= "A base node contains:"; + $output .= "Now that you know what is in a node, here are some of the types of nodes avalible:"; + + if ($mod == "admin") { foreach (module_list() as $name) { if (module_hook($name, "node") && $name != "node") { - print "

". t("%module type", array("%module" => ucfirst(module_invoke($name, "node", "name")))). "

"; - print module_invoke($name, "help"); + $output .= "

". t("%module type", array("%module" => ucfirst(module_invoke($name, "node", "name")))). "

"; + $output .= module_invoke($name, "help"); + } } } + return t($output); } function node_system($field){ $system["description"] = t("The core that allows content to be submitted to the site."); + $system["admin_help"] = t("Settings for the core of Drupal. Almost everything is a node so these settings will affect most of the site."); return $system[$field]; } @@ -522,16 +533,21 @@ function node_link($type, $node = 0, $main = 0) { } if ($type == "admin" && user_access("administer nodes")) { - $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("admin/node", "content 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", "approval queue", "node_admin", NULL, 1); +- $help["overview"] = t("Below is a list of all of the nodes in your site. Other content, such as ". l("comments", "admin/comment") .", are delt with in other areas.
Click on a node title to view the node, the author name to edit the author's user information.
Other work with nodes can be done with the menu on the left."); +- $help["post-overview"] = t("Click on new or updated posts to see your latest nodes, or approval queue to approve new messages.", array("%nup" => url("admin/nodes/0"), "%queue" => url("admin/nodes/1"))); +- $help["new-update"] = t("Below is a list of the latest nodes in your site. Click on a node title to see the node, the author name to edit the author's user information , \"edit node\" to edit the node, and \"delete node\" to remove the node."); +- $help["queue"] = t("Below is a list of the node in your site that need approval. To approve a node click on \"edit node\" and then change it's moderation status to Approved.
Click on a node title to see the node, the author name to edit the author's user information, \"edit node\" to edit the node, and \"delete node\" to remove the node."); +- $help["search"] = t("Enter a simple pattern ( '*' maybe used as a wildcard match) to search for a post. For example, one may search for 'br' and Drupal might return 'bread brakers', 'our daily bread' and 'brenda'."); +- $help["setting"] = t("The default settings for the different node types.
content type - the node type. comment - What kind of comments are associated with the node. publish - is this node publicly viewable, has it been published. promote - Is this node to be promoted to the front page. moderate - Does this node need approval before it can be viewed. static - Is this node to stay on the front page. revision - Will this node go into the revision system allowing multiple versions to be saved."); + + menu("admin/node", "content management", "node_admin", $help["overview"]); + menu("admin/node/nodes", "post overview", NULL, $help["post-overview"]); + menu("admin/node/nodes/0", "new or updated posts", "node_admin", $help["new-update"], 0); + menu("admin/node/nodes/1", "approval queue", "node_admin", $help["queue"], 1); menu("admin/node/search", "search posts", "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); - menu("admin/node/settings", "content settings", "node_admin", NULL, 8); + menu("admin/node/settings", "content settings", "node_admin", $help["setting"], 8); } return $links; -- cgit v1.2.3