From b81bb62d845fe30f77383e2e1ef7661e0a946ac9 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Thu, 30 May 2013 20:32:55 -0700 Subject: [PATCH] Issue #2004690 by Kristen Pol: Fix error with taxonomy admin page. --- config_translation.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config_translation.module b/config_translation.module index b2cabc0..be7cc4e 100644 --- a/config_translation.module +++ b/config_translation.module @@ -254,7 +254,7 @@ function config_translation_config_translation_group_info() { $items[] = new ConfigGroupMapper('admin/config/system/site-information', t('Site information'), array('system.site'), MENU_LOCAL_TASK, TRUE); // Taxonomy. - $items[] = new ConfigEntityMapper('admin/structure/taxonomy/{taxonomy_vocabulary}', 3, 'taxonomy_vocabulary', t('@label vocabulary'), 'taxonomy.vocabulary'); + $items[] = new ConfigEntityMapper('admin/structure/taxonomy/manage/{taxonomy_vocabulary}', 4, 'taxonomy_vocabulary', t('@label vocabulary'), 'taxonomy.vocabulary'); // User. $items[] = new ConfigGroupMapper('admin/config/people/accounts', t('Account settings'), array('user.settings', 'user.mail')); @@ -317,11 +317,11 @@ function config_translation_form_alter(&$form, &$form_state, $form_id) { // Alter the taxonomy form to add translation links. if ($form_id == 'taxonomy_overview_vocabularies') { - foreach ($form as $id => &$vocabulary) { + foreach ($form['vocabularies'] as $id => &$vocabulary) { if (is_array($vocabulary) && isset($vocabulary['operations'])) { $vocabulary['operations']['#links']['translate'] = array( 'title' => t('Translate'), - 'href' => 'admin/structure/taxonomy/' . $id . '/translate', + 'href' => 'admin/structure/taxonomy/manage/' . $id . '/translate', ); } } -- 1.8.0