summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-08-21 18:21:15 +0000
committerDries Buytaert <dries@buytaert.net>2003-08-21 18:21:15 +0000
commit3d89a559ca7728356e18100ae261d5daf8dcf4be (patch)
tree47acaa40557bd7d78e522a6efdaf09ba0cfcdfaf
parentda8f92dc3bb8838b72ec52812d09b336a767d0a3 (diff)
downloadbrdo-3d89a559ca7728356e18100ae261d5daf8dcf4be.tar.gz
brdo-3d89a559ca7728356e18100ae261d5daf8dcf4be.tar.bz2
- Updated the story module to the new help system.
-rw-r--r--modules/story.module23
-rw-r--r--modules/story/story.module23
2 files changed, 34 insertions, 12 deletions
diff --git a/modules/story.module b/modules/story.module
index 8434646ad..5ff152742 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -1,15 +1,26 @@
<?php
// $Id$
-function story_help() {
- $output .= "<p>The story module lets your users submit articles for consideration by the rest of the community, who can vote on them if moderation is enabled. Stories usually follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Administrators are able to shortcut this flow as desired.</p>";
- $output .= "In ". l("site configuration &gt;&gt; modules &gt;&gt; story", "admin/system/modules/story") ." you can set up an introductory text for story authors, and a floor on the number of words which may be included in a story. This is designed to help discourage the submission of trivially short stories.";
- return $output;
+function story_help($section = "admin/story/help") {
+ switch ($section) {
+ case "admin/system/modules":
+ $output = "Enables users to submit stories, articles or similar content.";
+ break;
+ case "admin/system/modules/story":
+ $output = "Stories are like newspaper articles. They tend to follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Below you may fix a minimum word count for stories and also write some submission or content guidelines for users wanting to post a story.";
+ break;
+ case "admin/story/help":
+ $output = "<p>The story module lets your users submit articles for consideration by the rest of the community, who can vote on them if moderation is enabled. Stories usually follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Administrators are able to shortcut this flow as desired.</p>";
+ $output .= "In ". l("site configuration &gt;&gt; modules &gt;&gt; story", "admin/system/modules/story") ." you can set up an introductory text for story authors, and a floor on the number of words which may be included in a story. This is designed to help discourage the submission of trivially short stories.";
+ break;
+ }
+
+ return t($output);
}
function story_system($field){
- $system["description"] = t("Enables users to submit stories, articles or similar content.");
- $system["admin_help"] = t("Stories are like newspaper articles. They tend to follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Below you may fix a minimum word count for stories and also write some submission or content guidelines for users wanting to post a story.");
+ $system["description"] = story_help("admin/system/modules");
+ $system["admin_help"] = story_help("admin/system/modules/story");
return $system[$field];
}
diff --git a/modules/story/story.module b/modules/story/story.module
index 8434646ad..5ff152742 100644
--- a/modules/story/story.module
+++ b/modules/story/story.module
@@ -1,15 +1,26 @@
<?php
// $Id$
-function story_help() {
- $output .= "<p>The story module lets your users submit articles for consideration by the rest of the community, who can vote on them if moderation is enabled. Stories usually follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Administrators are able to shortcut this flow as desired.</p>";
- $output .= "In ". l("site configuration &gt;&gt; modules &gt;&gt; story", "admin/system/modules/story") ." you can set up an introductory text for story authors, and a floor on the number of words which may be included in a story. This is designed to help discourage the submission of trivially short stories.";
- return $output;
+function story_help($section = "admin/story/help") {
+ switch ($section) {
+ case "admin/system/modules":
+ $output = "Enables users to submit stories, articles or similar content.";
+ break;
+ case "admin/system/modules/story":
+ $output = "Stories are like newspaper articles. They tend to follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Below you may fix a minimum word count for stories and also write some submission or content guidelines for users wanting to post a story.";
+ break;
+ case "admin/story/help":
+ $output = "<p>The story module lets your users submit articles for consideration by the rest of the community, who can vote on them if moderation is enabled. Stories usually follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Administrators are able to shortcut this flow as desired.</p>";
+ $output .= "In ". l("site configuration &gt;&gt; modules &gt;&gt; story", "admin/system/modules/story") ." you can set up an introductory text for story authors, and a floor on the number of words which may be included in a story. This is designed to help discourage the submission of trivially short stories.";
+ break;
+ }
+
+ return t($output);
}
function story_system($field){
- $system["description"] = t("Enables users to submit stories, articles or similar content.");
- $system["admin_help"] = t("Stories are like newspaper articles. They tend to follow a publishing flow of <b>submit -&gt; moderate -&gt; post to the main page -&gt; comments</b>. Below you may fix a minimum word count for stories and also write some submission or content guidelines for users wanting to post a story.");
+ $system["description"] = story_help("admin/system/modules");
+ $system["admin_help"] = story_help("admin/system/modules/story");
return $system[$field];
}