diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-22 17:46:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-22 17:46:44 +0000 |
commit | 7823ee8afd2d50c5414579eaabaa66fbed03c3df (patch) | |
tree | 1fe77e0d13ab1514a903343b2ca4c328657b80d6 | |
parent | d37c39dce2b8233ecef63f9b04fc1b91a54ba3cb (diff) | |
download | brdo-7823ee8afd2d50c5414579eaabaa66fbed03c3df.tar.gz brdo-7823ee8afd2d50c5414579eaabaa66fbed03c3df.tar.bz2 |
- Patch #10997 by Philippe: the forum submission guidelines were not always shown.
-rw-r--r-- | modules/forum.module | 7 | ||||
-rw-r--r-- | modules/forum/forum.module | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/modules/forum.module b/modules/forum.module index 8c54405a7..f79b3bf5f 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -23,11 +23,14 @@ function forum_help($section) { return t('Enable threaded discussions about general topics.'); case 'admin/settings/forum': return t("Forums are threaded discussions based on the taxonomy system. For the forums to work, the taxonomy module has to be installed and enabled. When activated, a taxonomy vocabulary (eg. \"forums\") needs to be <a href=\"%created\">created</a> and bound to the node type \"forum topic\".", array('%created' => url('admin/taxonomy/add/vocabulary'))); - case 'node/add/forum': - return variable_get('forum_help', ''); case 'node/add#forum': return t('A forum is a threaded discussion, enabling users to communicate about a particular topic.'); } + + // The 'add forum topic' form takes a variable argument: + if (substr($section, 0, 14) == 'node/add/forum'){ + return variable_get('forum_help', ''); + } } /** diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 8c54405a7..f79b3bf5f 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -23,11 +23,14 @@ function forum_help($section) { return t('Enable threaded discussions about general topics.'); case 'admin/settings/forum': return t("Forums are threaded discussions based on the taxonomy system. For the forums to work, the taxonomy module has to be installed and enabled. When activated, a taxonomy vocabulary (eg. \"forums\") needs to be <a href=\"%created\">created</a> and bound to the node type \"forum topic\".", array('%created' => url('admin/taxonomy/add/vocabulary'))); - case 'node/add/forum': - return variable_get('forum_help', ''); case 'node/add#forum': return t('A forum is a threaded discussion, enabling users to communicate about a particular topic.'); } + + // The 'add forum topic' form takes a variable argument: + if (substr($section, 0, 14) == 'node/add/forum'){ + return variable_get('forum_help', ''); + } } /** |