diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-08 17:50:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-08 17:50:40 +0000 |
commit | 7e8b9f8093af5267be20b068ed436dbb603c4cfd (patch) | |
tree | 736c5d8bcc5100c6b35525f0416e97f90d8bbf02 /modules/taxonomy/taxonomy.module | |
parent | 59792013ccb13dbd38eefee11e418af67e1c207c (diff) | |
download | brdo-7e8b9f8093af5267be20b068ed436dbb603c4cfd.tar.gz brdo-7e8b9f8093af5267be20b068ed436dbb603c4cfd.tar.bz2 |
- Patch #730418 by catch: allow modules to bypass taxonomy_get_tree() for term reference select lists.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index fb34cc4c4..944efe348 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1079,7 +1079,8 @@ function taxonomy_field_widget_info_alter(&$info) { * Implements hook_options_list(). */ function taxonomy_options_list($field) { - return taxonomy_allowed_values($field); + $function = !empty($field['settings']['options_list_callback']) ? $field['settings']['options_list_callback'] : 'taxonomy_allowed_values'; + return $function($field); } /** |