function entity_invoke_bundle_hook

Notifies modules about an operation that was performed on a entity bundle.

Parameters

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.

18 calls to entity_invoke_bundle_hook()

File

drupal/core/includes/entity.inc, line 102
Entity API for handling entities like nodes or users.

Code

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);
}