summaryrefslogtreecommitdiff
path: root/modules/story.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-17 09:07:00 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-17 09:07:00 +0000
commit860a5cc388f9ee729e54ece9425eb0275c340a4d (patch)
tree44582b4b1bdf762484edd64b33d43ced9c393b12 /modules/story.module
parentce42eb41a2bcc3ca409b47f1b965a98be6618e1f (diff)
downloadbrdo-860a5cc388f9ee729e54ece9425eb0275c340a4d.tar.gz
brdo-860a5cc388f9ee729e54ece9425eb0275c340a4d.tar.bz2
- Removed the $help parameter from the _form hook. The help, typically
submission guidelines, should be emmitted using the _help hook.
Diffstat (limited to 'modules/story.module')
-rw-r--r--modules/story.module11
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/story.module b/modules/story.module
index b441b1667..2c05c7838 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -16,6 +16,9 @@ function story_help($section = "admin/help#story") {
$output .= "In <a href=\"%story-config\">administer &raquo; configuration &raquo; modules &raquo; story</a> 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" => url("admin/system/modules/story")));
break;
+ case 'node/add/story':
+ $output = variable_get('story_help', '');
+ break;
}
return $output;
@@ -73,13 +76,7 @@ function story_validate(&$node) {
return $error;
}
-function story_form(&$node, &$help, &$error) {
-
- /*
- ** Carry out some explanation or submission guidelines:
- */
-
- $help = variable_get("story_help", "");
+function story_form(&$node, &$error) {
if (function_exists("taxonomy_node_form")) {
$output .= implode("", taxonomy_node_form("story", $node));