function book_migration_plugins_alter

Same name in other branches
  1. 8.9.x core/modules/book/book.module \book_migration_plugins_alter()
  2. 10 core/modules/book/book.module \book_migration_plugins_alter()
  3. 11.x core/modules/book/book.module \book_migration_plugins_alter()

Implements hook_migration_plugins_alter().

File

core/modules/book/book.module, line 546

Code

function book_migration_plugins_alter(array &$migrations) {
    // Book settings are migrated identically for Drupal 6 and Drupal 7. However,
    // a d6_book_settings migration already existed before the consolidated
    // book_settings migration existed, so to maintain backwards compatibility,
    // ensure that d6_book_settings is an alias of book_settings.
    if (isset($migrations['book_settings'])) {
        $migrations['d6_book_settings'] =& $migrations['book_settings'];
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.