summaryrefslogtreecommitdiff
path: root/modules/forum.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/forum.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/forum.module')
-rw-r--r--modules/forum.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/forum.module b/modules/forum.module
index 2e18afe04..d5aa94832 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -181,7 +181,7 @@ function forum_validate(&$node) {
}
}
-function forum_form(&$node, &$help, &$error) {
+function forum_form(&$node, &$error) {
if ($node->tid) {
// editing
$tid = $node->tid;
@@ -191,9 +191,6 @@ function forum_form(&$node, &$help, &$error) {
$tid = arg(3);
}
- // outputs the compose guidelines
- $help = variable_get("forum_help", "");
-
$output .= _taxonomy_term_select(t("Forum"), "tid", $tid, variable_get("forum_nav_vocabulary", ""), "", 0, "", variable_get("forum_containers", array()));
if ($node->nid) {
@@ -693,6 +690,9 @@ function forum_help($section = "admin/help#forum") {
case 'admin/system/modules/forum':
$output = _forum_message_taxonomy();
break;
+ case 'node/add/forum':
+ $output = variable_get('forum_help', '');
+ break;
}
return $output;