summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-01-02 23:26:43 +0000
committerDries Buytaert <dries@buytaert.net>2003-01-02 23:26:43 +0000
commit408bf86abd18c61bb70ed28b2045d07c599a91b2 (patch)
tree7e2d6fb77221c70bcbe8ac13c830ce7fae46e0a2 /modules/forum/forum.module
parent2b5dfdafa51f92e074d96ca249039f59b5bdc1a6 (diff)
downloadbrdo-408bf86abd18c61bb70ed28b2045d07c599a91b2.tar.gz
brdo-408bf86abd18c61bb70ed28b2045d07c599a91b2.tar.bz2
- Usability improvement; the drop-down menu showed the first vocabulary in
the list even though it has not been selected. Reported by Adam Shand.
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index dc867b28e..87cd82db3 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -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>"));