You are here

function nd_book_navigation in Node displays 6.3

Same name and namespace in other branches
  1. 6.2 nd.module \nd_book_navigation()
  2. 7 nd.module \nd_book_navigation()

Book navigation theming.

File

./nd.module, line 710
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;
}