function hook_entity_info_alter
Alter the entity info.
Modules may implement this hook to alter the information that defines an entity. All properties that are available in hook_entity_info() can be altered here.
Parameters
$entity_info: The entity info array, keyed by entity name.
See also
Related topics
5 functions implement hook_entity_info_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- book_entity_info_alter in modules/
book/ book.module - Implements hook_entity_info_alter().
- field_test_entity_info_alter in modules/
field/ tests/ field_test.entity.inc - Implements hook_entity_info_alter().
- forum_entity_info_alter in modules/
forum/ forum.module - Implements hook_entity_info_alter().
- locale_entity_info_alter in modules/
locale/ locale.module - Implements hook_entity_info_alter().
- rdf_entity_info_alter in modules/
rdf/ rdf.module - Implements hook_entity_info_alter().
File
-
modules/
system/ system.api.php, line 285
Code
function hook_entity_info_alter(&$entity_info) {
// Set the controller class for nodes to an alternate implementation of the
// DrupalEntityController interface.
$entity_info['node']['controller class'] = 'MyCustomNodeController';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.