function book_next
book_next($book_link)
Fetches the menu link for the next page of the book.
Parameters
$book_link: A fully loaded menu link that is part of the book hierarchy.
Return value
A fully loaded menu link for the page after the one represented in $book_link.
File
- modules/book/book.module, line 807
- Allows users to create and organize related content in an outline.
Code
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); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.module/function/book_next/7.x