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.
I'm of the opinion that i18n_menu_init() probably shouldn't be running during a profile install. It is very expensive, and greatly slows the installation process.
Is there any reason why this hook implementation must run during a profile install? Or is it perfectly reasonable to do this?
/**
* Implements hook_init().
*/
function i18n_menu_init() {
// Don't run prior to installation completion.
if (variable_get('install_task') != 'done') {
return;
}
Comments
Comment #1
joseph.olstadThanks for the patch, but went with another approach and it is fixed by this issue being fixed:
#881322: Multilevel menu fails to create active menu trail with same link_path in different languages