function social_event_an_enroll_update_8001 in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 8.3 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 8.4 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 8.5 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 8.6 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 8.7 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 10.0.x modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 10.1.x modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
- 10.2.x modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.install \social_event_an_enroll_update_8001()
Fix text of AU Enrollment Confirmation Email.
File
- modules/
social_features/ social_event/ modules/ social_event_an_enroll/ social_event_an_enroll.install, line 107 - Install, update functions for the social_event_an_enroll module.
Code
function social_event_an_enroll_update_8001() {
$config = \Drupal::service('config.factory')
->getEditable('social_event_an_enroll.settings');
$config
->set('event_an_enroll_email_subject', "You are enrolled in the event [node:title]");
$config
->set('event_an_enroll_email_body', "You have been enrolled in the event [node:title]. You can cancel your enrollment anytime using the following link: [social_event_an_enroll:enrolled_event].");
$config
->save();
}