You are here

function entity_legal_document_name_exists in Entity Legal 7

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

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

Parameters

string $document_name: The machine name to check.

Return value

bool Whether or not the machine name exists.

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

File

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

Code

function entity_legal_document_name_exists($document_name) {
  $existing_entity = entity_load_single(ENTITY_LEGAL_DOCUMENT_ENTITY_NAME, $document_name);
  return !empty($existing_entity);
}