function field_attach_create_bundle

cis7 field_attach_create_bundle($entity_type, $bundle)
cle7 field_attach_create_bundle($entity_type, $bundle)
elmsmedia7 field_attach_create_bundle($entity_type, $bundle)
icor7 field_attach_create_bundle($entity_type, $bundle)
meedjum_blog7 field_attach_create_bundle($entity_type, $bundle)
mooc7 field_attach_create_bundle($entity_type, $bundle)

Notify field.module that a new bundle was created.

The default SQL-based storage doesn't need to do anything about it, but others might.


$entity_type: The entity type to which the bundle is bound.

$bundle: The name of the newly created bundle.

Related topics

8 calls to field_attach_create_bundle()
EntityAPIController::invoke in sites/all/modules/ulmus/entity/includes/
Implements EntityAPIControllerInterface.
EntityAPIControllerExportable::invoke in sites/all/modules/ulmus/entity/includes/
Overridden to care about reverted bundle entities and to skip Rules.
field_collection_field_create_field in sites/all/modules/ulmus/field_collection/field_collection.module
Implements hook_field_create_field().
field_test_create_bundle in modules/field/tests/
Creates a new bundle for test_entity entities.
file_type_save in sites/all/modules/ulmus/file_entity/
Updates an existing file type or creates a new one.

... See full list


modules/field/, line 1342
Field attach API, allowing entities (nodes, users, ...) to be 'fieldable'.


function field_attach_create_bundle($entity_type, $bundle) {
  // Clear the cache.

  // Let other modules act on creating the bundle.
  module_invoke_all('field_attach_create_bundle', $entity_type, $bundle);