function hook_entity_info_alter

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.api.php hook_entity_info_alter(&$entity_info)
cle7 system.api.php hook_entity_info_alter(&$entity_info)
elmsmedia7 system.api.php hook_entity_info_alter(&$entity_info)
icor7 system.api.php hook_entity_info_alter(&$entity_info)
meedjum_blog7 system.api.php hook_entity_info_alter(&$entity_info)
mooc7 system.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

hook_entity_info()

Related topics

18 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().
diff_entity_info_alter in sites/all/modules/ulmus/diff/diff.module
Implements hook_entity_info_alter().
display_cache_entity_info_alter in sites/all/modules/ulmus/display_cache/display_cache.module
Implements hook_entity_info_alter().
ds_entity_info_alter in sites/all/modules/ulmus/ds/ds.module
Implements hook_entity_info_alter().
entitycache_entity_info_alter in sites/all/modules/ulmus/entitycache/entitycache.module
Implements hook_entity_info_alter().

... See full list

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