function field_attach_create_bundle


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
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);



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.