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/blog/blog.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/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 5ee3470ce..f06b2117e 100644 --- a/modules/blog/blog.module +++ b/modules/blog/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 |