You are here

function book_copy_module_implements_alter in Book Copy 7.2

Implements hook_module_implements_alter().

File

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

Code

function book_copy_module_implements_alter(&$implementations, $hook) {

  // remove the book_delete hook_menu_alter as it conflicts
  // both modules compete for book_delete_book_admin_overview
  // so we will provide built in support for book_delete
  // book_copy is moved to the end of the list for greater compatability
  if ($hook == 'menu_alter' && isset($implementations['book_delete'])) {
    unset($implementations['book_delete']);
    unset($implementations['book_copy']);
    $implementations['book_copy'] = FALSE;
  }
}