function field_ui_field_attach_rename_bundle
Implements hook_field_attach_rename_bundle().
File
-
modules/
field_ui/ field_ui.module, line 52
Code
function field_ui_field_attach_rename_bundle($entity_type, $bundle_old, $bundle_new) {
// The Field UI relies on entity_get_info() to build menu items for entity
// field administration pages. Clear the entity info cache and ensure that
// the menu is rebuilt.
entity_info_cache_clear();
menu_rebuild();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.