You are here

function entity_legal_document_version_name_exists in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.admin.inc \entity_legal_document_version_name_exists()

Check to see whether an legal document version with the given name exists.

Parameters

string $document_version_name: The machine name to check.

Return value

bool Whether or not the machine name exists.

1 string reference to 'entity_legal_document_version_name_exists'
entity_legal_document_version_form in ./entity_legal.admin.inc
Generates the profile type editing form.

File

./entity_legal.admin.inc, line 362
Administration hooks and helpers for entity_legal module.

Code

function entity_legal_document_version_name_exists($document_version_name) {
  $existing_entity = entity_load_single(ENTITY_LEGAL_DOCUMENT_VERSION_ENTITY_NAME, $document_version_name);
  return !empty($existing_entity);
}