Skip to content
Snippets Groups Projects
Commit 4969495e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #215858 by pwolanin, goba, catch et al: localized menu link data...

- Patch #215858 by pwolanin, goba, catch et al: localized menu link data getting saved back to the database.
parent f383ceef
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -629,6 +629,7 @@ function _menu_link_translate(&$item) { ...@@ -629,6 +629,7 @@ function _menu_link_translate(&$item) {
$map = array(); $map = array();
$item['href'] = $item['link_path']; $item['href'] = $item['link_path'];
$item['title'] = $item['link_title']; $item['title'] = $item['link_title'];
$item['localized_options'] = $item['options'];
} }
else { else {
$map = explode('/', $item['link_path']); $map = explode('/', $item['link_path']);
......
...@@ -622,7 +622,7 @@ function book_build_active_trail($book_link) { ...@@ -622,7 +622,7 @@ function book_build_active_trail($book_link) {
if (!isset($trail)) { if (!isset($trail)) {
$trail = array(); $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); $tree = menu_tree_all_data($book_link['menu_name'], $book_link);
$curr = array_shift($tree); $curr = array_shift($tree);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment