Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions

consentmanager_batch_link_unlink

Link or unlink all resources in a collection with a consent record.

Variable Description Data type
$consent *
The ID of the consent record to link or unlink.
int
$collection *
The ID of the collection containing the resources to process.
int
$unlink *
Set to true to unlink resources from the consent; set to
false to link resources to the consent.
bit (0 or 1)

Return values

Returns true if the process completes successfully else false.