function i18n_book_navigation_block in Book translation 6
Same name and namespace in other branches
- 6.2 i18n_book_navigation.module \i18n_book_navigation_block()
Implementation of hook_block()
Similar to book_block(). Creates a Book navigation for translated nodes, even when they're not part of the book outline.
File
- ./
i18n_book_navigation.module, line 80
Code
function i18n_book_navigation_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'view':
return _i18n_book_navigation_block(menu_get_object());
break;
case 'list':
$block = array();
$block[0]['info'] = t('i18n Book Navigation');
$block[0]['cache'] = BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE;
return $block;
}
}