You are here

function hook_activity_send_email_notifications_alter in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  2. 8.2 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  3. 8.3 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  4. 8.4 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  5. 8.5 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  6. 8.6 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  7. 8.7 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  8. 8.8 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  9. 10.0.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  10. 10.1.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
  11. 10.2.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()

Alter notification settings display.

Parameters

array &$items: An array of groups that contain a title and an array of templates that are contained in this settings group.

array $email_message_templates: Message templates enabled for sending by email.

See also

activity_send_email_form_user_form_alter()

7 functions implement hook_activity_send_email_notifications_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

social_content_report_activity_send_email_notifications_alter in modules/social_features/social_content_report/social_content_report.module
Implements hook_activity_send_email_notifications_alter().
social_event_activity_send_email_notifications_alter in modules/social_features/social_event/social_event.module
Implements hook_activity_send_email_notifications_alter().
social_event_managers_activity_send_email_notifications_alter in modules/social_features/social_event/modules/social_event_managers/social_event_managers.module
Implements hook_activity_send_email_notifications_alter().
social_follow_tag_activity_send_email_notifications_alter in modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module
Implements hook_activity_send_email_notifications_alter().
social_group_request_activity_send_email_notifications_alter in modules/social_features/social_group/modules/social_group_request/social_group_request.module
Implements hook_activity_send_email_notifications_alter().

... See full list

2 invocations of hook_activity_send_email_notifications_alter()
activity_send_email_form_user_form_alter in modules/custom/activity_send/modules/activity_send_email/activity_send_email.module
Implements hook_form_FORM_ID_alter() for user_form().
SocialSwiftmailSettingsForm::buildForm in modules/social_features/social_swiftmail/src/Form/SocialSwiftmailSettingsForm.php
Form constructor.

File

modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php, line 24
Hooks provided by the Activity Send Email module.

Code

function hook_activity_send_email_notifications_alter(array &$items, array $email_message_templates) {

  // If a create_private_message template is enabled then we add it in the
  // "Message to Me" section.
  if (isset($email_message_templates['create_private_message'])) {
    $items['message_to_me']['templates'][] = 'create_private_message';
  }
}