summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-13 18:59:53 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-13 18:59:53 +0000
commit581bc6a267f2377addd53286b27a282b44816257 (patch)
treee10604604c55c690bc214bea68e8e3779a5543e3 /modules/taxonomy.module
parentb81d3d93b8b64b3e0c3f03d267cf601016dcb4cf (diff)
downloadbrdo-581bc6a267f2377addd53286b27a282b44816257.tar.gz
brdo-581bc6a267f2377addd53286b27a282b44816257.tar.bz2
- more coding style fixes.
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module20
1 files changed, 13 insertions, 7 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 265b566d0..dacca431a 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -570,19 +570,23 @@ function taxonomy_admin() {
switch ($op) {
case "add":
- if ($type == "vocabulary")
+ if ($type == "vocabulary") {
print taxonomy_form_vocabulary();
- else
+ }
+ else {
print taxonomy_form_term();
+ }
break;
case "edit":
- if ($type == "vocabulary")
+ if ($type == "vocabulary") {
print taxonomy_form_vocabulary(object2array(taxonomy_get_vocabulary($id)));
- else
+ }
+ else {
print taxonomy_form_term(object2array(taxonomy_get_term($id)));
+ }
break;
case "preview":
- print taxonomy_form($id);
+ print taxonomy_form($id);
break;
case "help":
print taxonomy_help();
@@ -591,10 +595,12 @@ function taxonomy_admin() {
$edit["name"] = 0;
// fall through:
case "Submit":
- if ($type == "vocabulary")
+ if ($type == "vocabulary") {
print status(taxonomy_save_vocabulary($edit));
- else
+ }
+ else {
print status(taxonomy_save_term($edit));
+ }
// fall through:
default:
print taxonomy_overview();