Act on field_attach_create_bundle().
This hook is invoked after the field module has performed the operation.
$entity_type: The type of $entity; e.g. 'node' or 'user'.
$entity: the entity with fields to process.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_field_attach_create_bundle($entity_type, $bundle) {
// When a new bundle is created, the menu needs to be rebuilt to add the
// Field UI menu item tabs.
state()
->set('menu_rebuild_needed', TRUE);
}