diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-17 09:07:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-17 09:07:00 +0000 |
commit | 860a5cc388f9ee729e54ece9425eb0275c340a4d (patch) | |
tree | 44582b4b1bdf762484edd64b33d43ced9c393b12 /modules/story.module | |
parent | ce42eb41a2bcc3ca409b47f1b965a98be6618e1f (diff) | |
download | brdo-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.module | 11 |
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 » configuration » modules » 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)); |