Issue #2081149 by areke, deneo, mrsinguyen: Remove Unused local variable from /core/modules/content_translation/content_translation.module.

8.0.x
webchick 2013-12-03 21:40:30 -08:00
parent cab8b6d5bc
commit b917d2b009
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
else {
$entity_position = count(explode('/', $path)) - 1;
$edit_path = $path . '/edit';
if (isset($items[$edit_path])) {
@ -832,7 +831,7 @@ function content_translation_form_field_ui_field_instance_edit_form_alter(array
* Implements hook_field_info_alter().
*/
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.
$field_type_info['settings'] += array('translation_sync' => FALSE);
// Synchronization can be enabled per instance.