function entity_legal_document_load in Entity Legal 7
Same name and namespace in other branches
- 7.2 entity_legal.module \entity_legal_document_load()
Implements hook_WILDCARD_load().
File
- ./
entity_legal.module, line 259 - Entity Legal module.
Code
function entity_legal_document_load($entity) {
if (is_string($entity)) {
$entity_name = str_replace('-', '_', $entity);
return entity_load_single(ENTITY_LEGAL_DOCUMENT_ENTITY_NAME, $entity_name);
}
return $entity;
}