function hook_activity_send_email_notifications_alter in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 8.2 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 8.3 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 8.4 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 8.5 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 8.7 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 8.8 modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 10.3.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 10.0.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 10.1.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.api.php \hook_activity_send_email_notifications_alter()
- 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()
4 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 - Add notification settings display on user Profile for the EO notification.
- social_event_managers_activity_send_email_notifications_alter in modules/
social_features/ social_event/ modules/ social_event_managers/ social_event_managers.module - Add notification settings display on user Profile for the EO notification.
- social_private_message_activity_send_email_notifications_alter in modules/
social_features/ social_private_message/ social_private_message.module - Implements hook_activity_send_email_notifications_alter().
1 invocation 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().
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';
}
}