function i18n_book_navigation_theme in Book translation 6.2
Same name and namespace in other branches
- 6 i18n_book_navigation.module \i18n_book_navigation_theme()
- 7.2 i18n_book_navigation.module \i18n_book_navigation_theme()
Implementation of hook_theme()
The i18n_book_navigation uses the book-navigation.tpl.php file for theming the "footer" book navigation in book pages. It will use it to display this navigation on translated nodes, even if they're not part of a book outline. We must implement our own theme however, because the default book_navigation will call menu_tree_all_data() before i18n_book_navigation, which will store an empty tree statically, preventing us from using it and translating the links.
File
- ./
i18n_book_navigation.module, line 20 - Defines the i18n book navigation module. Contains all necessary data and hooks
Code
function i18n_book_navigation_theme($existing, $type, $theme, $path) {
return array(
'i18n_book_navigation' => array(
'arguments' => array(
'book_link' => NULL,
),
'path' => drupal_get_path('module', 'book'),
'template' => 'book-navigation',
),
);
}