On this page
function hook_field_attach_create_bundle
hook_field_attach_create_bundle($entity_type, $bundle)
Act on field_attach_create_bundle().
This hook is invoked after the field module has performed the operation.
See field_attach_create_bundle() for details and arguments.
Related topics
File
- modules/field/field.api.php, line 1595
- Hooks provided by the Field module.
Code
function hook_field_attach_create_bundle($entity_type, $bundle) {
// When a new bundle is created, the menu needs to be rebuilt to add the
// Field UI menu item tabs.
variable_set('menu_rebuild_needed', TRUE);
}
© 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.api.php/function/hook_field_attach_create_bundle/7.x