You are here

function hook_pmpapi_update_incoming_item_alter in Public Media Platform API Integration 7

Act on an incoming PMP item to be deleted/updated.

Parameters

object $item: The item to be updated/deleted (as a SimpleXML element)

string $operation: The operation to be performed on the item (as a PubSubHubbub topic URI)

File

pmpapi_update/pmpapi_update.api.php, line 17
Hooks provided by the PMPAPI update module.

Code

function hook_pmpapi_update_incoming_item_alter($item, $operation) {
  $guid = (string) $item->guid;
  watchdog('my_module', t('Received notification with following GUID:') . ' ' . $guid);
}