Commit 408bf86a authored by Dries's avatar Dries
Browse files

- Usability improvement; the drop-down menu showed the first vocabulary in
  the list even though it has not been selected.  Reported by Adam Shand.
parent 2b5dfdaf
......@@ -29,11 +29,12 @@ function forum_perm() {
function forum_conf_options() {
if (module_exist("taxonomy")) {
$vocs[0] = "<". t("none") .">";
foreach (taxonomy_get_vocabularies("forum") as $vid => $voc) {
$vocs[$vid] = $voc->name;
}
if ($vocs) {
if ($voc) {
$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>"));
......
......@@ -29,11 +29,12 @@ function forum_perm() {
function forum_conf_options() {
if (module_exist("taxonomy")) {
$vocs[0] = "<". t("none") .">";
foreach (taxonomy_get_vocabularies("forum") as $vid => $voc) {
$vocs[$vid] = $voc->name;
}
if ($vocs) {
if ($voc) {
$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>"));
......
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