summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-31 12:12:00 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-31 12:12:00 +0000
commitd91b1c77aafa5cf69fa9069c940c174c56bd7e1d (patch)
treec53e39df07b5cf5d7c83fe5abec2735f1050d9b8 /modules/taxonomy
parentad8eacac3bcf33ae6e1cf70196fc94a1fee3bd3a (diff)
downloadbrdo-d91b1c77aafa5cf69fa9069c940c174c56bd7e1d.tar.gz
brdo-d91b1c77aafa5cf69fa9069c940c174c56bd7e1d.tar.bz2
- Patch #950138 by yched, an.droid: Changed Abstract Field API () usage into an API function.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 1e0cf45ad..47e845b23 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1457,7 +1457,7 @@ function taxonomy_autocomplete_validate($element, &$form_state) {
$value = array();
if ($tags = $element['#value']) {
// Collect candidate vocabularies.
- $field = $form_state['field'][$element['#field_name']][$element['#language']]['field'];
+ $field = field_widget_field($element, $form_state);
$vocabularies = array();
foreach ($field['settings']['allowed_values'] as $tree) {
if ($vocabulary = taxonomy_vocabulary_machine_name_load($tree['vocabulary'])) {