function _i18n_book_navigation_up in Book translation 6
Get the parent book page
1 call to _i18n_book_navigation_up()
- template_preprocess_i18n_book_navigation in ./
i18n_book_navigation.module - Similar to template_preprocess_book_navigation() Preprocesses the variables and creates the book navigation for the translated nodes.
File
- ./
i18n_book_navigation.module, line 380
Code
function _i18n_book_navigation_up($flat, $book_link) {
$i = 0;
$up = array();
foreach ($flat as $key => $entry) {
if ($key == $book_link['mlid']) {
$up = $flat[$entry['plid']];
}
$i++;
}
_i18n_book_navigation_translate($up);
return $up;
}