Add settings for inbox notifications/SMS.

This commit is contained in:
Colin Kuskie 2009-02-26 17:05:45 -08:00
parent b2419bffef
commit 180b454ce7
3 changed files with 39 additions and 2 deletions

View file

@ -287,6 +287,22 @@ sub definition {
hoverHelp=>$i18n->get('mail return path help'),
defaultValue=>$setting->get("mailReturnPath")
});
push(@fields, {
tab => 'messaging',
fieldType => 'email',
name => 'smsGateway',
label => $i18n->get('sms gateway', 'Message_Center'),
hoverHelp => $i18n->get('sms gateway help', 'Message_Center'),
defaultValue => $setting->get('smsGateway'),
});
push(@fields, {
tab => 'messaging',
fieldType => 'yesNo',
name => 'sendInboxNotificationsOnly',
label => $i18n->get('send inbox notifications only', 'Message_Center'),
hoverHelp => $i18n->get('send inbox notifications only help', 'Message_Center'),
defaultValue => $setting->get('sendInboxNotificationsOnly'),
});
# misc
push(@fields, {
tab=>"misc",

View file

@ -1,6 +1,5 @@
package WebGUI::ProfileCategory;
=head1 LEGAL
-------------------------------------------------------------------

View file

@ -22,12 +22,34 @@ our $I18N = {
lastUpdated => 1235685248,
},
'receive inbox emails' => {
'receive inbox sms' => {
message => q|Receive inbox notification via SMS?|,
context => q|Allows a user to choose how they get notified about things in their Inbox.|,
lastUpdated => 1235685248,
},
'sms gateway' => {
message => q|SMS gateway|,
context => q|email to SMS/text email address for this site.|,
lastUpdated => 1235685248,
},
'sms gateway help' => {
message => q|The email address that this site would use to send an SMS message.|,
lastUpdated => 1235695517,
},
'send inbox notifications only' => {
message => q|Send only Inbox notifications|,
context => q|Site setting. A notification is a short message that something is in the Inbox.|,
lastUpdated => 1235685248,
},
'send inbox notifications only help' => {
message => q|Should WebGUI always just send notifications about Inbox messages, instead of the message itself?|,
lastUpdated => 1235696295,
},
};
1;