You are here

function hook_gathercontent_post_import in GatherContent 7.3

Perform operations on all items which entered import or update.

You can use this hook to create relations between nodes or creating various statistics about imports and updates. You can fetch type of operation from Operation entity.

Parameters

array $success: Array of arrays with successfully imported nids and their gathercontent_id.

array $unsuccess: Array of arrays with unsuccessfully imported nids and their gathercontent_id.

$operation_id: ID of operation. You can fetch Operation entity or all OperationItem entities related to Operation by this parameter.

2 invocations of hook_gathercontent_post_import()
gathercontent_import_finished in ./gathercontent.import.inc
Finished callback.
gathercontent_update_finished in ./gathercontent.module
Finished callback.

File

./gathercontent.api.php, line 91
Hooks provided by the GatherContent module.

Code

function hook_gathercontent_post_import(array $success, array $unsuccess, $operation_id) {
}