diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc index f509752..306cbbd 100644 --- a/core/modules/content_translation/content_translation.admin.inc +++ b/core/modules/content_translation/content_translation.admin.inc @@ -144,116 +144,88 @@ function _content_translation_form_language_content_settings_form_alter(array &$ * (proxied) Implements hook_preprocess_HOOK(); */ function _content_translation_preprocess_language_content_settings_table(&$variables) { - // Alter the 'build' variable injecting the translation settings if the user + // Alter the 'table' variable injecting the translation settings if the user // has the required permission. if (!user_access('administer content translation')) { return; } $element = $variables['element']; - $build = &$variables['build']; + $table = &$variables['table']; - array_unshift($build['#header'], array('data' => t('Translatable'), 'class' => array('translatable'))); - $rows = array(); + array_unshift($table['#header'], array('data' => t('Translatable'), 'class' => array('translatable'))); foreach (element_children($element) as $bundle) { $field_names = !empty($element[$bundle]['fields']) ? element_children($element[$bundle]['fields']) : array(); if (!empty($element[$bundle]['translatable'])) { $checkbox_id = $element[$bundle]['translatable']['#id']; } - $rows[$bundle] = $build['#rows'][$bundle]; if (!empty($element[$bundle]['translatable'])) { - $translatable = array( - 'data' => $element[$bundle]['translatable'], - 'class' => array('translatable'), - ); - array_unshift($rows[$bundle]['data'], $translatable); - - $rows[$bundle]['data'][1]['data']['#prefix'] = '