Notifies modules about an operation that was performed on a entity bundle.
string $hook: One of 'create', 'rename' or 'delete'.
string $entity_type: The entity type to which the bundle is bound.
string $bundle: The name of the bundle on which the operation was performed.
string|null $bundle_new: The new name of the bundle in case of a 'rename' operation. Defaults to NULL.
function entity_invoke_bundle_hook($hook, $entity_type, $bundle, $bundle_new = NULL) {
entity_info_cache_clear();
module_invoke_all('entity_bundle_' . $hook, $entity_type, $bundle, $bundle_new);
}