function hook_entity_bundle_info_alter

Alter the bundles for entity types.

Parameters

array $bundles: An array of bundles, keyed first by entity type, then by bundle name.

See also

entity_get_bundles()

hook_entity_bundle_info()

Related topics

5 functions implement hook_entity_bundle_info_alter()

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

entity_test_entity_bundle_info_alter in drupal/core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_bundle_info_alter().
field_test_entity_bundle_info_alter in drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc
Implements hook_entity_bundle_info_alter().
forum_entity_bundle_info_alter in drupal/core/modules/forum/forum.module
Implements hook_entity_bundle_info_alter().
rdf_entity_bundle_info_alter in drupal/core/modules/rdf/rdf.module
Implements hook_entity_bundle_info_alter().
translation_entity_entity_bundle_info_alter in drupal/core/modules/translation_entity/translation_entity.module
Implements hook_entity_bundle_info_alter().

File

drupal/core/includes/entity.api.php, line 77
Hooks provided the Entity module.

Code

function hook_entity_bundle_info_alter(&$bundles) {
  $bundles['user']['user']['label'] = t('Full account');
}