function social_event_activity_send_email_notifications_alter in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 8.4 modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 8.6 modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 8.7 modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 8.8 modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 10.3.x modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 10.0.x modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 10.1.x modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
- 10.2.x modules/social_features/social_event/social_event.module \social_event_activity_send_email_notifications_alter()
Add notification settings display on user Profile for the EO notification.
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()
File
- modules/
social_features/ social_event/ social_event.module, line 585 - The Social event module.
Code
function social_event_activity_send_email_notifications_alter(array &$items, array $email_message_templates) {
// If a activity_on_events_im_organizing template is enabled then we add it in
// the "Message to Me" section.
if (isset($email_message_templates['activity_on_events_im_organizing'])) {
$items['what_manage']['templates'][] = 'activity_on_events_im_organizing';
}
}