Commit 6fcadb8e authored by Dries's avatar Dries

- Made it possible to print forum submission guidelines.  Patch by Moshe.
parent d99100c5
......@@ -35,6 +35,7 @@ function forum_conf_options() {
}
if ($voc) {
$output .= form_textarea("Explanation or submission guidelines", "forum_help", variable_get("forum_help", ""), 55, 4, t("This text will be displayed at the top of the forum submission form. Useful for helping or instructing your users."));
$output .= form_select("Forum vocabulary", "forum_nav_vocabulary", variable_get("forum_nav_vocabulary", ""), $vocs, t("The taxonomy vocabulary that will be used as the navigation tree."));
$output .= _taxonomy_term_select("Containers", "forum_containers", variable_get("forum_containers", array()), variable_get("forum_nav_vocabulary", ""), t("You can choose forums which will not have topics, but will be just containers for other forums."), 1, t("<none>"));
......@@ -203,6 +204,9 @@ function forum_form(&$node, &$help, &$error) {
$tid = arg(3);
}
// outputs the compose guidelines
$help = variable_get("forum_help", "");
$output .= _taxonomy_term_select("Forum", "tid", $tid, variable_get("forum_nav_vocabulary", ""), "", 0, "", variable_get("forum_containers", array()));
if ($node->nid) {
......
......@@ -35,6 +35,7 @@ function forum_conf_options() {
}
if ($voc) {
$output .= form_textarea("Explanation or submission guidelines", "forum_help", variable_get("forum_help", ""), 55, 4, t("This text will be displayed at the top of the forum submission form. Useful for helping or instructing your users."));
$output .= form_select("Forum vocabulary", "forum_nav_vocabulary", variable_get("forum_nav_vocabulary", ""), $vocs, t("The taxonomy vocabulary that will be used as the navigation tree."));
$output .= _taxonomy_term_select("Containers", "forum_containers", variable_get("forum_containers", array()), variable_get("forum_nav_vocabulary", ""), t("You can choose forums which will not have topics, but will be just containers for other forums."), 1, t("<none>"));
......@@ -203,6 +204,9 @@ function forum_form(&$node, &$help, &$error) {
$tid = arg(3);
}
// outputs the compose guidelines
$help = variable_get("forum_help", "");
$output .= _taxonomy_term_select("Forum", "tid", $tid, variable_get("forum_nav_vocabulary", ""), "", 0, "", variable_get("forum_containers", array()));
if ($node->nid) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment