function pmpapi_pull_doc_has_been_pulled in Public Media Platform API Integration 7
Determines if a doc has already been pulled from the PMP API (and saved as an entity locally).
Parameters
string $guid: The GUID of the doc
Return value
boolean TRUE if doc already exists locally, FALSE otherwise.
5 calls to pmpapi_pull_doc_has_been_pulled()
- pmpapi_pull_entity_delete in pmpapi_pull/
pmpapi_pull.module - Implements hook_entity_delete().
- pmpapi_pull_entity_update in pmpapi_pull/
pmpapi_pull.module - Implements hook_entity_update().
- pmpapi_pull_parse_doc_metadata in pmpapi_pull/
pmpapi_pull.pages.inc - Parses out metadata from PMP docs.
- pmpapi_pull_pmpapi_push_entity_ok_to_push in pmpapi_pull/
pmpapi_pull.module - Implements hook_pmpapi_push_entity_ok_to_push().
- pmpapi_update_process_notification in pmpapi_update/
pmpapi_update.pages.inc
File
- pmpapi_pull/
pmpapi_pull.module, line 198 - Allows admins to pull content from the PMP API, and turn PMP docs into (locally-stored, independent) drupal entities.
Code
function pmpapi_pull_doc_has_been_pulled($guid) {
return db_query('SELECT guid FROM {pmpapi_pull_pulled_docs} WHERE guid=:guid', array(
':guid' => $guid,
))
->fetchField();
}