summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-08 17:50:40 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-08 17:50:40 +0000
commit7e8b9f8093af5267be20b068ed436dbb603c4cfd (patch)
tree736c5d8bcc5100c6b35525f0416e97f90d8bbf02 /modules/taxonomy/taxonomy.module
parent59792013ccb13dbd38eefee11e418af67e1c207c (diff)
downloadbrdo-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.module3
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);
}
/**