public static function EntityType::loadByName in Entity Construction Kit (ECK) 7.2
Same name and namespace in other branches
- 7.3 eck.classes.inc \EntityType::loadByName()
Load a specific entity type.
Parameters
string $name: The name of the entity type.
Return value
EntityType|NULL
16 calls to EntityType::loadByName()
- eck_bundle_features_export_options in ./
eck.features.inc - Implements hook_features_export_options().
- eck_entity_delete in ./
eck.module - Implements hook_entity_delete().
- eck_entity_insert in ./
eck.module - Implements hook_entity_insert().
- eck_entity_presave in ./
eck.module - Implements hook_entity_presave().
- eck_entity_type_features_rebuild in ./
eck.features.inc - Implements hook_features_rebuild().
File
- ./
eck.classes.inc, line 464 - Classes for all the different objects used in ECK.
Class
- EntityType
- An entity type database object.
Code
public static function loadByName($name) {
$entity_types = EntityType::loadAll();
if (array_key_exists($name, $entity_types)) {
return $entity_types[$name];
}
return NULL;
}