You are here

function _activity_send_email_default_template_items in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.module \_activity_send_email_default_template_items()
  2. 10.0.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.module \_activity_send_email_default_template_items()
  3. 10.1.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.module \_activity_send_email_default_template_items()
  4. 10.2.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.module \_activity_send_email_default_template_items()

Returns default templates grouped by specific category.

Return value

array[] Grouped default templates.

2 calls to _activity_send_email_default_template_items()
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.module, line 312
Contains activity_basics.module..

Code

function _activity_send_email_default_template_items() {
  return [
    'message_to_me' => [
      'title' => t('Message to me'),
      'templates' => [
        'create_post_profile',
        'create_mention_post',
        'create_mention_comment',
        'create_comment_reply_mention',
        'create_comment_reply',
        'create_comment_post_profile',
        'create_like_node_or_post',
      ],
    ],
    'what_manage' => [
      'title' => t('What I manage'),
      'templates' => [
        'create_comment_author_node_post',
        'join_to_group',
        'request_event_enrollment',
      ],
    ],
    'what_follow' => [
      'title' => t('What I follow'),
      'templates' => [
        'create_comment_following_node',
        'create_content_in_joined_group',
      ],
    ],
    'system_notifications' => [
      'title' => t('System notifications'),
      'templates' => [],
    ],
  ];
}