function social_queue_storage_activity_send_email_notifications_alter in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
- 8.8 modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
- 10.3.x modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
- 10.0.x modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
- 10.2.x modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
Implements hook_activity_send_email_notifications_alter().
File
- modules/
custom/ social_queue_storage/ social_queue_storage.module, line 25 - Contains social_queue_storage.module.
Code
function social_queue_storage_activity_send_email_notifications_alter(array &$items, array $email_message_templates) {
// If our background_process_finished template is enabled for email then we
// add it to the "System Notifications" section.
if (isset($email_message_templates['background_process_finished'])) {
$items['system_notifications']['templates'][] = 'background_process_finished';
}
}