summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-26 08:33:20 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-26 08:33:20 +0000
commit7946eca135a8d936d1cdc5a8f686702462ffa769 (patch)
treef7e7d595400e1f3b23c8c1c58a2edfd356e7739b /modules/taxonomy.module
parent5d43619ca7afa5ba7a876834cb291d7a3a5e9c29 (diff)
downloadbrdo-7946eca135a8d936d1cdc5a8f686702462ffa769.tar.gz
brdo-7946eca135a8d936d1cdc5a8f686702462ffa769.tar.bz2
- Patch #35926 by asimmonds: make required vocabularies actually required.
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index d7e27604a..8a197c60d 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -533,6 +533,7 @@ function taxonomy_form_alter($form_id, &$form) {
else {
$form['taxonomy'][$vocabulary->vid] = taxonomy_form($vocabulary->vid, array_keys($terms), $help);
$form['taxonomy'][$vocabulary->vid]['#weight'] = $vocabulary->weight;
+ $form['taxonomy'][$vocabulary->vid]['#required'] = $vocabulary->required;
}
}
if (isset($form['taxonomy'])) {