Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Crell on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Starting in Drupal 7, hook_hook_info() allows modules to specify that certain hooks live in files other than a .module file. As with many such hooks, it included a corresponding alter hook, hook_hook_info_alter().
In Drupal 8, hook_hook_info_alter() has been removed as it resulted in too much complexity for little discernible value. The way that info hook definitions are merged has also changed such that modules can safely implement hook_hook_info() on behalf of core modules without causing PHP errors, eliminating the need for this hook.
Impacts:
Module developers