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.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
hook_init was a swiss army knife hook in Drupal 7. However hook_init() has been removed in Drupal 8:
https://www.drupal.org/node/2013014
You can still implement this easily enough by registering an event subscriber. However it would be nice if you still use hook_init!
This module simply reimplements hook_init for Drupal 8 by implementing an event subscriber for you and then calling all hook_init implementations, meaning you can continue to use hook_init as per Drupal 7.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Developer Tools
- Created by ThomWilhelm on , updated