summaryrefslogtreecommitdiff
path: root/modules/story.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/story.module')
-rw-r--r--modules/story.module13
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/story.module b/modules/story.module
index 0b58aff63..f7e1c4bfc 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -5,7 +5,7 @@ function story_help($section = "admin/story/help") {
$output = "";
switch ($section) {
- case "admin/system/modules":
+ case "admin/system/modules#description":
$output = t("Enables users to submit stories, articles or similar content.");
break;
case "admin/system/modules/story":
@@ -14,22 +14,13 @@ function story_help($section = "admin/story/help") {
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 %story-config 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.";
- $output = t($output, array("%story-config" => l(t("site configuration &raquo; modules &raquo; story"), "admin/system/modules/story") ));
+ $output = t($output, array("%story-config" => l(t("site configuration &raquo; modules &raquo; story"), "admin/system/modules/story")));
break;
}
return $output;
}
-function story_system($field){
- $output = "";
-
- if ($field == "description") { $output = story_help("admin/system/modules"); }
- else if ($field == "admin_help") { $output = story_help("admin/system/modules/story"); };
-
- return $output;
-}
-
function story_settings() {
$output .= form_textarea("Explanation or submission guidelines", "story_help", variable_get("story_help", ""), 70, 5, "This text will be displayed at the top of the story submission form. It is useful for helping or instructing your users.");
$output .= form_select(t("Minimum number of words"), "minimum_story_size", variable_get("minimum_story_size", 0), array(0 => "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a story must be to be considered valid. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts."));