function book_copy_show_history in Book Copy 7
Same name and namespace in other branches
- 6 book_copy.module \book_copy_show_history()
This function while being very small is doing quite a bit, describe what it's doing This is also a page callback for 'book_copy/history/%node' so indicate it's a Callback function in the commment
1 string reference to 'book_copy_show_history'
- book_copy_menu in ./
book_copy.module - Implements hook_menu().
File
- ./
book_copy.module, line 216
Code
function book_copy_show_history($book) {
drupal_set_title(t('Book History: @title', array(
'@title' => $book->title,
)), PASS_THROUGH);
$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;
}