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/api.elmsln.org/includes/bootstrap.inc).
cis7 field.attach.inc field_attach_create_bundle($entity_type, $bundle)
cle7 field.attach.inc field_attach_create_bundle($entity_type, $bundle)
elmsmedia7 field.attach.inc field_attach_create_bundle($entity_type, $bundle)
icor7 field.attach.inc field_attach_create_bundle($entity_type, $bundle)
meedjum_blog7 field.attach.inc field_attach_create_bundle($entity_type, $bundle)
mooc7 field.attach.inc 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.

Parameters

$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/entity.controller.inc
Implements EntityAPIControllerInterface.
EntityAPIControllerExportable::invoke in sites/all/modules/ulmus/entity/includes/entity.controller.inc
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/field_test.entity.inc
Creates a new bundle for test_entity entities.
file_type_save in sites/all/modules/ulmus/file_entity/file_entity.file_api.inc
Updates an existing file type or creates a new one.

... See full list

File

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

Code

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

  // Let other modules act on creating the bundle.
  module_invoke_all('field_attach_create_bundle', $entity_type, $bundle);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.