function book_copy_show_history in Book Copy 6
Same name and namespace in other branches
- 7 book_copy.module \book_copy_show_history()
Initial function to render a books copy history
Parameters
object $book a node representing the book to show history for:
1 string reference to 'book_copy_show_history'
- book_copy_menu in ./
book_copy.module - implementation of hook_menu
File
- ./
book_copy.module, line 299
Code
function book_copy_show_history($book) {
drupal_set_title(t('Book History: @title', array(
'@title' => $book->title,
)));
$ssbid = _book_copy_initial_source($book->book['bid']);
$tree = _book_copy_get_book_history($ssbid);
$output = _book_copy_render_tree($tree, $book->book['bid']);
return $output;
}