You are here

function i18n_book_navigation_get_books in Book translation 6.2

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

Gets all the available books. Port from book_get_books(). Needs to deactivate the i18n module in order to retreive all books, regardless of the language settings.

See also

book_get_books()

1 call to i18n_book_navigation_get_books()
_i18n_book_navigation_block in ./i18n_book_navigation.module
Creates the block navigation. Assembles the navigation for the "current" book outline and translates the links into the desired language.

File

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

Code

function i18n_book_navigation_get_books() {
  module_disable(array(
    'i18n',
  ));
  $books = book_get_books();
  module_enable(array(
    'i18n',
  ));
  return $books;
}