From db09a6178ba423fe2ce85317afaca5c58a5b6887 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 26 Sep 2009 15:57:39 +0000 Subject: - Patch #367013 by bjaspan, KarenS | yched, Dries: add support for field updates. --- 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 ee18ede4c..b8b6c2e6e 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -2137,7 +2137,7 @@ function taxonomy_element_info() { /** * Implement hook_field_settings_form(). */ -function taxonomy_field_settings_form($field, $instance) { +function taxonomy_field_settings_form($field, $instance, $has_data) { // Get proper values for 'allowed_values_function', which is a core setting. $vocabularies = taxonomy_get_vocabularies(); $options = array(); @@ -2156,6 +2156,7 @@ function taxonomy_field_settings_form($field, $instance) { '#options' => $options, '#required' => TRUE, '#description' => t('The vocabulary which supplies the options for this field.'), + '#disabled' => $has_data, ); $form['allowed_values'][$delta]['parent'] = array( '#type' => 'value', -- cgit v1.2.3