From 4969495e04a42e0ac94b6c4ad9ca30bf245e3310 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 10 Feb 2008 19:49:37 +0000 Subject: [PATCH] - Patch #215858 by pwolanin, goba, catch et al: localized menu link data getting saved back to the database. --- includes/menu.inc | 1 + modules/book/book.module | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/menu.inc b/includes/menu.inc index 33125386866e..6c7cd021818e 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -629,6 +629,7 @@ function _menu_link_translate(&$item) { $map = array(); $item['href'] = $item['link_path']; $item['title'] = $item['link_title']; + $item['localized_options'] = $item['options']; } else { $map = explode('/', $item['link_path']); diff --git a/modules/book/book.module b/modules/book/book.module index 4f603e8f941f..bb4083277b05 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -622,7 +622,7 @@ function book_build_active_trail($book_link) { if (!isset($trail)) { $trail = array(); - $trail[] = array('title' => t('Home'), 'href' => '<front>', 'options' => array()); + $trail[] = array('title' => t('Home'), 'href' => '<front>', 'localized_options' => array()); $tree = menu_tree_all_data($book_link['menu_name'], $book_link); $curr = array_shift($tree); -- GitLab