function pmpapi_pull_doc_exists in Public Media Platform API Integration 7
Determines if an entity with a certain GUID already exists.
Parameters
string $guid: The GUID in question
Return value
boolean TRUE if doc already exists locally, FALSE otherwise.
File
- pmpapi_pull/
pmpapi_pull.module, line 184 - Allows admins to pull content from the PMP API, and turn PMP docs into (locally-stored, independent) drupal entities.
Code
function pmpapi_pull_doc_exists($guid) {
return pmpapi_pull_get_nid_from_guid($guid);
}