On this page
function field_ui_field_attach_rename_bundle
field_ui_field_attach_rename_bundle($entity_type, $bundle_old, $bundle_new)
Implements hook_field_attach_rename_bundle().
File
- modules/field_ui/field_ui.module, line 52
- Allows administrators to attach custom fields to fieldable types.
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();
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field_ui!field_ui.module/function/field_ui_field_attach_rename_bundle/7.x