Returns a list of test entity types.
The returned entity types are one for each available entity storage type:
int $filter: Either ENTITY_TEST_TYPES_REVISABLE to only return revisable entity types or ENTITY_TEST_TYPES_MULTILINGUAL to only return multilingual ones. Defaults to NULL, which returns all.
array List with entity_types.
function entity_test_entity_types($filter = NULL) {
$types = array();
if ($filter == NULL) {
$types[] = 'entity_test';
}
if ($filter != ENTITY_TEST_TYPES_REVISABLE) {
$types[] = 'entity_test_mul';
}
if ($filter != ENTITY_TEST_TYPES_MULTILINGUAL) {
$types[] = 'entity_test_rev';
}
$types[] = 'entity_test_mulrev';
return drupal_map_assoc($types);
}