hook_entity_info_alter
function hook_entity_info_alter
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
File
- modules/system/system.api.php, line 285
- Hooks provided by Drupal core and the System 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'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_entity_info_alter/7.x