You are here

function hook_book_copy_alter in Book Copy 7

Implements hook_book_copy_alter().

Allow for modification of each item during the clone of the book items.

1 invocation of hook_book_copy_alter()
book_copy_copy_book in ./book_copy.module
This function is intended to be called via drupals batch processing system and will clone an entire or partial book.

File

./book_copy.api.php, line 17

Code

function hook_book_copy_alter($node, $bid, $newbid) {

  // specific operation for book outline 6
  if ($node->type == 'page' && $bid == 6) {
    $node->title .= ' cloned';
  }
}