diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-01 14:05:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-01 14:05:32 +0000 |
commit | 342ebd7776df44eae48876a2526949fef4d04d4b (patch) | |
tree | 4d3f9f79244e14ed94327a9649eff13204ac6d1f /modules/taxonomy/taxonomy.module | |
parent | e4ca439ba1f901526526f73adb106f7075fb5f11 (diff) | |
download | brdo-342ebd7776df44eae48876a2526949fef4d04d4b.tar.gz brdo-342ebd7776df44eae48876a2526949fef4d04d4b.tar.bz2 |
- Patch #567064 by yched, sun: widgets done 'the easy way' have too many limitations. Removes more code than it adds!
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 4 |
1 files changed, 2 insertions, 2 deletions
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(), ); |