You are here

function i18n_book_navigation_prev in Book translation 6.2

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

Loads the previous link in the book. Port from book_prev(). 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_prev()

1 call to i18n_book_navigation_prev()
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 485
Defines the i18n book navigation module. Contains all necessary data and hooks

Code

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