You are here

function _book_copy_list in Book Copy 7.2

When passed a book link, assemble an array of nids => mlids based on _book_toc_recurse and book_toc

2 calls to _book_copy_list()
book_copy_copy in ./book_copy.module
Callback for replicating a book outline below a passed node.
book_copy_copy_confirm in ./book_copy.module
Menu callback. Ask for confirmation of book copy.

File

./book_copy.module, line 352
Book copy, copy book outlines

Code

function _book_copy_list($book_link) {

  // assemble the full book based on bid
  $tree = menu_tree_all_data(book_menu_name($book_link['bid']));
  $copytree = array();

  // start off recursive operation, not copying anything by default
  _book_copy_list_recurse($tree, $book_link, $copytree, FALSE);
  return $copytree;
}