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.
drupal_get_path()
in particular will do a database lookup, and if called during early bootstrap can make things explode. Let's use module_load_include()
here instead, since it's meant for this very purpose.
Comment | File | Size | Author |
---|---|---|---|
taxonomy_menu-module_load_include.patch | 630 bytes | jenlampton | |
|
Comments
Comment #2
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commentedComment #4
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commented