Add User (uid) Welcome Notification (#6045)

v1.18.x
acardinale 7 years ago committed by Barış Soner Uşaklı
parent 78e65ab8c8
commit 5ed6b5c414

@ -1,5 +1,6 @@
{
"notifications": "Notifications",
"welcome-notification": "Welcome Notification",
"welcome-notification-link": "Welcome Notification Link"
"welcome-notification-link": "Welcome Notification Link",
"welcome-notification-uid": "Welcome Notification User (UID)"
}

@ -320,6 +320,7 @@ UserNotifications.sendWelcomeNotification = function (uid, callback) {
bodyShort: meta.config.welcomeNotification,
path: path,
nid: 'welcome_' + uid,
from: meta.config.welcomeUid ? meta.config.welcomeUid : null,
}, next);
},
function (notification, next) {

@ -6,6 +6,7 @@
<form>
<strong>[[admin/settings/notifications:welcome-notification]]</strong><br /> <textarea class="form-control" data-field="welcomeNotification"></textarea><br />
<strong>[[admin/settings/notifications:welcome-notification-link]]</strong><br /> <input type="text" class="form-control" data-field="welcomeLink"><br />
<strong>[[admin/settings/notifications:welcome-notification-uid]]</strong><br /> <input type="text" class="form-control" data-field="welcomeUid"><br />
</form>
</div>
</div>

Loading…
Cancel
Save