book_next
- Versions
- 4.6 – 5
book_next($node)- 6 – 7
book_next($book_link)
Fetches the menu link for the next page of the book.
Code
modules/book/book.module, line 575
<?php
function book_next($book_link) {
$flat = book_get_flat_menu($book_link);
// Assigning the array to $flat resets the array pointer for use with each().
do {
list($key, $curr) = each($flat);
} while ($key && $key != $book_link['mlid']);
if ($key == $book_link['mlid']) {
return current($flat);
}
}
?>Login or register to post comments 