function book_next
Same name and namespace in other branches
- 7.x drupal-7.x/modules/book/book.module \book_next()
Fetches the menu link for the next page of the book.
1 call to book_next()
- template_preprocess_book_navigation in drupal-6.x/
modules/ book/ book.module - Process variables for book-navigation.tpl.php.
Archivo
- drupal-6.x/
modules/ book/ book.module, line 575 - Allows users to structure the pages of a site in a hierarchy or outline.
Código
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);
}
}