summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-26 15:57:39 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-26 15:57:39 +0000
commitdb09a6178ba423fe2ce85317afaca5c58a5b6887 (patch)
tree7a23bc57bfb65197a9ac1416d8c989b506e5e05d /modules/taxonomy/taxonomy.module
parentdba2ebb118a25ff6ed9bcc6a59cc42c20d55ad66 (diff)
downloadbrdo-db09a6178ba423fe2ce85317afaca5c58a5b6887.tar.gz
brdo-db09a6178ba423fe2ce85317afaca5c58a5b6887.tar.bz2
- Patch #367013 by bjaspan, KarenS | yched, Dries: add support for field updates.
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 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',