You are here

function hook_activity_allowed_duplicates_alter in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_logger/activity_logger.api.php \hook_activity_allowed_duplicates_alter()
  2. 10.3.x modules/custom/activity_logger/activity_logger.api.php \hook_activity_allowed_duplicates_alter()
  3. 10.0.x modules/custom/activity_logger/activity_logger.api.php \hook_activity_allowed_duplicates_alter()
  4. 10.2.x modules/custom/activity_logger/activity_logger.api.php \hook_activity_allowed_duplicates_alter()

Provide a method to alter message templates where duplicates are allowed.

Parameters

array $allowed_duplicates: List of message template id.

1 invocation of hook_activity_allowed_duplicates_alter()
ActivityLoggerFactory::checkIfMessageExist in modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php
Checks if a message already exists.

File

modules/custom/activity_logger/activity_logger.api.php, line 21
Hooks provided by the Activity Logger module.

Code

function hook_activity_allowed_duplicates_alter(array &$allowed_duplicates) {
  $allowed_duplicates[] = 'update_challenge_phase_authors';
}