On this page
function field_ui_field_attach_create_bundle
field_ui_field_attach_create_bundle($entity_type, $bundle)
Implements hook_field_attach_create_bundle().
File
- modules/field_ui/field_ui.module, line 324
- Allows administrators to attach custom fields to fieldable types.
Code
function field_ui_field_attach_create_bundle($entity_type, $bundle) {
// When a new bundle is created, the menu needs to be rebuilt to add our
// 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_ui!field_ui.module/function/field_ui_field_attach_create_bundle/7.x