function hook_field_attach_create_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

2 functions implement hook_field_attach_create_bundle()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_test_field_attach_create_bundle in modules/field/tests/field_test.storage.inc
Implements hook_field_attach_create_bundle().
field_ui_field_attach_create_bundle in modules/field_ui/field_ui.module
Implements hook_field_attach_create_bundle().
1 invocation of hook_field_attach_create_bundle()
field_attach_create_bundle in modules/field/field.attach.inc
Notify field.module that a new bundle was created.

File

modules/field/field.api.php, line 1595

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.