function _book_copy_initial_source in Book Copy 7
Same name and namespace in other branches
- 6 book_copy.module \_book_copy_initial_source()
Go back through to the initial source.
1 call to _book_copy_initial_source()
- book_copy_show_history in ./
book_copy.module - 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
File
- ./
book_copy.module, line 298
Code
function _book_copy_initial_source($bid) {
$result = db_select('book_copy_history', 'bch')
->fields('bch', array())
->condition('bch.bid', $bid)
->execute();
foreach ($result as $row) {
return _book_copy_initial_source($row->sbid);
}
return $bid;
}