summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-12-28 10:47:33 +0000
committerDries Buytaert <dries@buytaert.net>2003-12-28 10:47:33 +0000
commitbaaa21e1316354ada6d985a5b799ce17d6255590 (patch)
treedcd7d9a51ad26ff41e6633cca4b5a272ba72eab8 /modules/taxonomy.module
parent5c0cd3c03f956412c0b0e859d31a1ffe265ef1a1 (diff)
downloadbrdo-baaa21e1316354ada6d985a5b799ce17d6255590.tar.gz
brdo-baaa21e1316354ada6d985a5b799ce17d6255590.tar.bz2
- Tidied up some inconsistencies in the code: scripts/code-style.sh is your friend.
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 693bd36f8..889e24b5d 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -772,16 +772,20 @@ function taxonomy_admin() {
switch ($op) {
case "add":
- if (arg(3) == "vocabulary")
+ if (arg(3) == "vocabulary") {
$output .= taxonomy_form_vocabulary();
- else if (arg(3) == "term")
+ }
+ else if (arg(3) == "term") {
$output .= taxonomy_form_term();
+ }
break;
case "edit":
- if (arg(3) == "vocabulary")
+ if (arg(3) == "vocabulary") {
$output .= taxonomy_form_vocabulary(object2array(taxonomy_get_vocabulary(arg(4))));
- else if (arg(3) == "term")
+ }
+ else if (arg(3) == "term") {
$output .= taxonomy_form_term(object2array(taxonomy_get_term(arg(4))));
+ }
break;
case "preview":
$output .= taxonomy_form(arg(4));