You are here

function social_queue_storage_activity_send_email_notifications_alter in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
  2. 10.3.x modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
  3. 10.0.x modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
  4. 10.1.x modules/custom/social_queue_storage/social_queue_storage.module \social_queue_storage_activity_send_email_notifications_alter()
  5. 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';
  }
}