summaryrefslogtreecommitdiff
path: root/modules/field_ui
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-07-20 01:20:33 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-07-20 01:20:33 -0700
commitbe1bb23a1e16af14ca9ee7401e9be528c43796ed (patch)
treee754a1815dc836b9813e46b710facebd0a303d9c /modules/field_ui
parentee8670c29533a96fe1aa0b08e95d7327b983066b (diff)
downloadbrdo-be1bb23a1e16af14ca9ee7401e9be528c43796ed.tar.gz
brdo-be1bb23a1e16af14ca9ee7401e9be528c43796ed.tar.bz2
Issue #1164852 by plach: Default the 'translatable' bit on fields to FALSE for fields created in the UI, to match those created by the API.
Diffstat (limited to 'modules/field_ui')
-rw-r--r--modules/field_ui/field_ui.admin.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc
index 96beb1334..b594faca3 100644
--- a/modules/field_ui/field_ui.admin.inc
+++ b/modules/field_ui/field_ui.admin.inc
@@ -509,6 +509,10 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle
'#cell_attributes' => array('colspan' => 3),
'#prefix' => '<div class="add-new-placeholder">&nbsp;</div>',
),
+ 'translatable' => array(
+ '#type' => 'value',
+ '#value' => FALSE,
+ ),
);
}
@@ -753,7 +757,7 @@ function field_ui_field_overview_form_submit($form, &$form_state) {
$field = array(
'field_name' => $values['field_name'],
'type' => $values['type'],
- 'translatable' => TRUE,
+ 'translatable' => $values['translatable'],
);
$instance = array(
'field_name' => $field['field_name'],