function nd_book_navigation in Node displays 6.2
Same name and namespace in other branches
- 6.3 nd.module \nd_book_navigation()
- 7 nd.module \nd_book_navigation()
Book navigation theming.
File
- ./
nd.module, line 736 - Node displays.
Code
function nd_book_navigation($field) {
$content = '';
if (isset($field['object']->content['book_navigation'])) {
if (isset($field['object']->content['book_navigation']['#value'])) {
$content = $field['object']->content['book_navigation']['#value'];
}
elseif (isset($field['object']->book['bid']) && !empty($field['object']->book['bid'])) {
$content = theme('book_navigation', $field['object']->book);
}
}
else {
if (isset($field['object']->book['bid']) && !empty($field['object']->book['bid'])) {
$content = theme('book_navigation', $field['object']->book);
}
}
return $content;
}