You are here

function entity_crud_get_info in Entity API 7

Get the entity info for the entity types provided via the entity CRUD API.

Return value

array An array in the same format as entity_get_info(), containing the entities whose controller class implements the EntityAPIControllerInterface.

9 calls to entity_crud_get_info()
entity_defaults_rebuild in ./entity.module
Rebuild the default entities provided in code.
entity_entity_property_info in ./entity.info.inc
Implements hook_entity_property_info().
entity_features_api in ./entity.features.inc
Implements of hook_features_api().
entity_field_extra_fields in ./entity.module
Implements hook_field_extra_fields().
entity_rules_event_info in ./entity.rules.inc
Implements hook_rules_event_info().

... See full list

File

./entity.module, line 736

Code

function entity_crud_get_info() {
  $types = array();
  foreach (entity_get_info() as $type => $info) {
    if (isset($info['controller class']) && in_array('EntityAPIControllerInterface', class_implements($info['controller class']))) {
      $types[$type] = $info;
    }
  }
  return $types;
}