diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-06 04:21:12 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-06 04:21:12 +0000 |
commit | be0b774cbcae15a664eff0f308b436aabd6f3dd0 (patch) | |
tree | a73a8ba649c4eb4d9db6ffe2b6566c2d9dbdcbc7 /modules/taxonomy.module | |
parent | ec04325bb29f431f05d59a7cb8e4429b86267b65 (diff) | |
download | brdo-be0b774cbcae15a664eff0f308b436aabd6f3dd0.tar.gz brdo-be0b774cbcae15a664eff0f308b436aabd6f3dd0.tar.bz2 |
- #57523: Make taxonomy delete vocabulary consistent with other taxonomy hook ops
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r-- | modules/taxonomy.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index c4e8c7fd1..69fe701ab 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -121,7 +121,7 @@ function taxonomy_menu($may_cache) { * List and manage vocabularies. */ function taxonomy_overview_vocabularies() { - $vocabularies = taxonomy_get_vocabularies(); + $vocabularies = taxonomy_get_vocabularies(); foreach ($vocabularies as $vocabulary) { $types = array(); foreach ($vocabulary->nodes as $type) { @@ -133,7 +133,7 @@ function taxonomy_overview_vocabularies() { $form[$vocabulary->vid]['edit'] = array('#value' => l(t('edit vocabulary'), "admin/taxonomy/edit/vocabulary/$vocabulary->vid")); $form[$vocabulary->vid]['list'] = array('#value' => l(t('list terms'), "admin/taxonomy/$vocabulary->vid")); } - + return drupal_get_form('taxonomy_overview_vocabularies', $form); } @@ -156,7 +156,7 @@ function theme_taxonomy_overview_vocabularies($form) { $rows[] = array(array('data' => t('No categories available.'), 'colspan' => '4', 'class' => 'message')); } $header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '2')); - + $output = theme('table', $header, $rows, array('id' => 'taxonomy')); $output .= form_render($form); return $output; @@ -509,7 +509,7 @@ function taxonomy_del_term($tid) { } } - $term = taxonomy_get_term($tid); + $term = (array) taxonomy_get_term($tid); db_query('DELETE FROM {term_data} WHERE tid = %d', $tid); db_query('DELETE FROM {term_hierarchy} WHERE tid = %d', $tid); |