Commit 041d8ee5 authored by webchick's avatar webchick

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

parent 25e0f161
......@@ -1182,7 +1182,7 @@ function field_attach_create_bundle($bundle) {
// Clear the cache.
field_cache_clear();
menu_rebuild();
foreach (module_implements('field_attach_create_bundle') as $module) {
$function = $module . '_field_attach_create_bundle';
$function($bundle);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment