diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-10 10:16:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-10 10:16:29 +0000 |
commit | 30bf1d53ae8f115bd4cbffe684ab3f17d381d4a1 (patch) | |
tree | 6e13511f8c9ac182bbd4ceb42272b72a7247e160 | |
parent | 07e6bdcdfe3273e6a17940c2ba12d2c8e0e878d1 (diff) | |
download | brdo-30bf1d53ae8f115bd4cbffe684ab3f17d381d4a1.tar.gz brdo-30bf1d53ae8f115bd4cbffe684ab3f17d381d4a1.tar.bz2 |
- Patch #100429 by Zen, RobRoy and kkaefer: remove the content type requirement.
-rw-r--r-- | modules/taxonomy/taxonomy.module | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index a895f9734..e82bb0cd0 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -255,11 +255,10 @@ function taxonomy_form_vocabulary($edit = array()) { '#description' => t('Instructions to present to the user when choosing a term.'), ); $form['nodes'] = array('#type' => 'checkboxes', - '#title' => t('Types'), + '#title' => t('Content types'), '#default_value' => $edit['nodes'], '#options' => node_get_types('names'), - '#description' => t('A list of node types you want to associate with this vocabulary.'), - '#required' => TRUE, + '#description' => t('A list of content types you would like to categorize using this vocabulary.'), ); $form['hierarchy'] = array('#type' => 'radios', '#title' => t('Hierarchy'), @@ -316,6 +315,7 @@ function taxonomy_form_vocabulary_submit($form_id, $form_values) { drupal_set_message(t('Updated vocabulary %name.', array('%name' => $form_values['name']))); break; } + return 'admin/content/taxonomy'; } @@ -1135,7 +1135,9 @@ function taxonomy_vocabulary_load($vid) { $result = db_query('SELECT v.*, n.type FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} n ON v.vid = n.vid WHERE v.vid = %d ORDER BY v.weight, v.name', $vid); $node_types = array(); while ($voc = db_fetch_object($result)) { - $node_types[] = $voc->type; + if (!empty($voc->type)) { + $node_types[] = $voc->type; + } unset($voc->type); $voc->nodes = $node_types; $vocabularies[$vid] = $voc; |