summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 693bd36f8..889e24b5d 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/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));