function _i18n_book_navigation_next in Book translation 6
Get the next book page
1 call to _i18n_book_navigation_next()
- 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 400
Code
function _i18n_book_navigation_next($flat, $book_link) {
$i = 0;
$next = array();
$flat_values = array_values($flat);
foreach ($flat as $key => $entry) {
if ($key == $book_link['mlid']) {
for ($j = $i + 1, $len = count($flat_values); $j < $len; $j++) {
if (_i18n_book_navigation_is_translated($flat_values[$j])) {
$next = $flat_values[$j];
_i18n_book_navigation_translate($next);
return $next;
}
}
}
$i++;
}
}