function nd_book_navigation in Node displays 7
Same name and namespace in other branches
- 6.3 nd.module \nd_book_navigation()
- 6.2 nd.module \nd_book_navigation()
Book navigation.
File
- ./
nd.module, line 520 - Node displays.
Code
function nd_book_navigation($field) {
$field = $field['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;
}