Skip to content
Snippets Groups Projects
Commit 041d8ee5 authored by Angie Byron's avatar Angie Byron
Browse files

#516138 follow-up by Damien Tournoud: Remove expensive menu_rebuild() call from field API.

parent 25e0f161
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1182,7 +1182,7 @@ function field_attach_create_bundle($bundle) { ...@@ -1182,7 +1182,7 @@ function field_attach_create_bundle($bundle) {
// Clear the cache. // Clear the cache.
field_cache_clear(); field_cache_clear();
menu_rebuild();
foreach (module_implements('field_attach_create_bundle') as $module) { foreach (module_implements('field_attach_create_bundle') as $module) {
$function = $module . '_field_attach_create_bundle'; $function = $module . '_field_attach_create_bundle';
$function($bundle); $function($bundle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment