You are here

function i18n_book_navigation_next in Book translation 6.2

Same name and namespace in other branches
  1. 7.2 i18n_book_navigation.module \i18n_book_navigation_next()

Loads the next link in the book. Port from book_next(). Will translate the link after loading it.

Parameters

array $book_link: The link data

Return value

array|false The loaded link or false if no link was found

See also

book_nex()

1 call to i18n_book_navigation_next()
template_preprocess_i18n_book_navigation in ./i18n_book_navigation.module
Preprocesses the i18n_book_navigation. Very similar to the book_navigation, the i18n_book_navigation uses the same template file and template variables. These variables will be translated and the urls adapted.

File

./i18n_book_navigation.module, line 509
Defines the i18n book navigation module. Contains all necessary data and hooks

Code

function i18n_book_navigation_next($book_link) {
  $tree = array(
    array(
      'link' => book_next($book_link),
      'below' => FALSE,
    ),
  );
  $tree = i18n_book_navigation_translate_tree($tree);
  return isset($tree[0]['link']) ? $tree[0]['link'] : FALSE;
}