diff options
-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', ''); + } } /** |