function field_attach_create_bundle
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
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.attach.inc/function/field_attach_create_bundle/7.x