| 7 system.api.php | hook_entity_info_alter(&$entity_info) |
| 8 entity.api.php | hook_entity_info_alter(&$entity_info) |
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()
1 invocation of hook_entity_info_alter()
File
- core/
modules/ entity/ entity.api.php, line 211 - Hooks provided the Entity module.
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';
}
Login or register to post comments