From 342ebd7776df44eae48876a2526949fef4d04d4b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 1 Nov 2009 14:05:32 +0000 Subject: - Patch #567064 by yched, sun: widgets done 'the easy way' have too many limitations. Removes more code than it adds! --- modules/taxonomy/taxonomy.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index d2aaf6320..045b43532 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1211,8 +1211,8 @@ function taxonomy_term_title($term) { /** * Implement hook_field_widget(). */ -function taxonomy_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta = NULL) { - $element = array( +function taxonomy_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { + $element += array( '#type' => $instance['widget']['type'], '#default_value' => !empty($items) ? $items : array(), ); -- cgit v1.2.3