From 860a5cc388f9ee729e54ece9425eb0275c340a4d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 17 Jan 2004 09:07:00 +0000 Subject: - Removed the $help parameter from the _form hook. The help, typically submission guidelines, should be emmitted using the _help hook. --- modules/blog.module | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'modules/blog.module') diff --git a/modules/blog.module b/modules/blog.module index 5ee3470ce..f06b2117e 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -82,6 +82,9 @@ function blog_help($section) { case 'admin/system/modules/blog': $output .= t("A weblog is a running journal of a users ideas. Enter the minimum word count for a single entry, and the text displayed on the entry submission form"); break; + case 'node/add/blog': + $output = variable_get('blog_help', ''); + break; } return $output; @@ -159,16 +162,10 @@ function blog_validate(&$node) { return $error; } -function blog_form(&$node, &$help, &$error) { +function blog_form(&$node, &$error) { global $nid; $iid = $_GET["iid"]; - /* - ** Carry out some explanation or submission guidelines: - */ - - $help = variable_get("blog_help", ""); - if (empty($node->body)) { /* ** If the user clicked a "blog it" link, we load the data from the -- cgit v1.2.3