You are here

function entity_legal_document_version_load in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.module \entity_legal_document_version_load()

Implements hook_WILDCARD_load().

File

./entity_legal.module, line 272
Entity Legal module.

Code

function entity_legal_document_version_load($entity) {
  if (is_string($entity)) {
    $entity_name = str_replace('-', '_', $entity);
    return entity_load_single(ENTITY_LEGAL_DOCUMENT_VERSION_ENTITY_NAME, $entity_name);
  }
  return $entity;
}