Skip to content
Snippets Groups Projects
Commit 7823ee8a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #10997 by Philippe: the forum submission guidelines were not always shown.
parent d37c39dc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -23,11 +23,14 @@ function forum_help($section) { ...@@ -23,11 +23,14 @@ function forum_help($section) {
return t('Enable threaded discussions about general topics.'); return t('Enable threaded discussions about general topics.');
case 'admin/settings/forum': 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'))); 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': case 'node/add#forum':
return t('A forum is a threaded discussion, enabling users to communicate about a particular topic.'); 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', '');
}
} }
/** /**
......
...@@ -23,11 +23,14 @@ function forum_help($section) { ...@@ -23,11 +23,14 @@ function forum_help($section) {
return t('Enable threaded discussions about general topics.'); return t('Enable threaded discussions about general topics.');
case 'admin/settings/forum': 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'))); 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': case 'node/add#forum':
return t('A forum is a threaded discussion, enabling users to communicate about a particular topic.'); 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', '');
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment