From 7e8b9f8093af5267be20b068ed436dbb603c4cfd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 8 Mar 2010 17:50:40 +0000 Subject: - Patch #730418 by catch: allow modules to bypass taxonomy_get_tree() for term reference select lists. --- modules/taxonomy/taxonomy.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') 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); } /** -- cgit v1.2.3