hook_entity_info_alter

Versions
mediamosa-21
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.

See also

hook_entity_info()

Parameters

$entity_info The entity info array, keyed by entity name.

Related topics

Code

modules/system/system.api.php, line 200

<?php
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';
}
?>