Commit b917d2b0 authored by webchick's avatar webchick

Issue #2081149 by areke, deneo, mrsinguyen: Remove Unused local variable from...

Issue #2081149 by areke, deneo, mrsinguyen: Remove Unused local variable  from /core/modules/content_translation/content_translation.module.
parent cab8b6d5
...@@ -253,7 +253,6 @@ function content_translation_menu_alter(array &$items) { ...@@ -253,7 +253,6 @@ function content_translation_menu_alter(array &$items) {
watchdog('content translation', 'The entities of type @entity_type do not define a valid base path: it will not be possible to translate them.', $t_args, WATCHDOG_WARNING); watchdog('content translation', 'The entities of type @entity_type do not define a valid base path: it will not be possible to translate them.', $t_args, WATCHDOG_WARNING);
} }
else { else {
$entity_position = count(explode('/', $path)) - 1;
$edit_path = $path . '/edit'; $edit_path = $path . '/edit';
if (isset($items[$edit_path])) { if (isset($items[$edit_path])) {
...@@ -832,7 +831,7 @@ function content_translation_form_field_ui_field_instance_edit_form_alter(array ...@@ -832,7 +831,7 @@ function content_translation_form_field_ui_field_instance_edit_form_alter(array
* Implements hook_field_info_alter(). * Implements hook_field_info_alter().
*/ */
function content_translation_field_info_alter(&$info) { function content_translation_field_info_alter(&$info) {
foreach ($info as $field_type => &$field_type_info) { foreach ($info as &$field_type_info) {
// By default no column has to be synchronized. // By default no column has to be synchronized.
$field_type_info['settings'] += array('translation_sync' => FALSE); $field_type_info['settings'] += array('translation_sync' => FALSE);
// Synchronization can be enabled per instance. // Synchronization can be enabled per instance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment