You are here

public static function EntityType::loadByName in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 eck.classes.inc \EntityType::loadByName()

Load by name.

Return value

mixed The entity type or Null.

23 calls to EntityType::loadByName()
ECKEntity::__construct in ./eck.classes.inc
Constructor.
ECKEntity::__set in ./eck.classes.inc
Magic set.
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_presave in ./eck.module
Implements hook_entity_presave().

... See full list

File

./eck.classes.inc, line 448
Classes for all the different objects used in ECK.

Class

EntityType

Code

public static function loadByName($name) {
  $entity_types = EntityType::loadAll();
  if (array_key_exists($name, $entity_types)) {
    return $entity_types[$name];
  }
  return NULL;
}