From bf6870ed08a93c668bc4b27d1b68e57a6d5fade8 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 25 Apr 2012 15:01:18 -0700 Subject: Issue #1541792 by tim.plunkett, chx, Amitaibu: Enable dynamic allowed list values function with additional context --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 31f94fb4d..9f5711bf5 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1372,7 +1372,7 @@ function taxonomy_field_widget_info_alter(&$info) { /** * Implements hook_options_list(). */ -function taxonomy_options_list($field) { +function taxonomy_options_list($field, $instance, $entity_type, $entity) { $function = !empty($field['settings']['options_list_callback']) ? $field['settings']['options_list_callback'] : 'taxonomy_allowed_values'; return $function($field); } -- cgit v1.2.3