Add Friends Manager Group setting w/ i18n and help.
This commit is contained in:
parent
dcc90c6b45
commit
8dd59e5d92
3 changed files with 13 additions and 42 deletions
|
|
@ -482,6 +482,7 @@ sub definition {
|
|||
groupIdAdminCache
|
||||
groupIdAdminCron
|
||||
groupIdAdminDatabaseLink
|
||||
groupIdAdminFriends
|
||||
groupIdAdminGraphics
|
||||
groupIdAdminGroup
|
||||
groupIdAdminGroupAdmin
|
||||
|
|
|
|||
|
|
@ -3728,7 +3728,6 @@ LongTruncOk=1</p>
|
|||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
|
||||
'settings groupIdAdminAdSpace label' => {
|
||||
message => q{AdSpace},
|
||||
lastUpdated => 0,
|
||||
|
|
@ -3770,6 +3769,15 @@ LongTruncOk=1</p>
|
|||
},
|
||||
|
||||
|
||||
'settings groupIdAdminFriends label' => {
|
||||
message => q{Friends},
|
||||
lastUpdated => 0,
|
||||
},
|
||||
'settings groupIdAdminFriends hoverHelp' => {
|
||||
message => q{Group to manage friends.},
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'settings groupIdAdminGraphics label' => {
|
||||
message => q{Graphics},
|
||||
lastUpdated => 0,
|
||||
|
|
|
|||
|
|
@ -31,8 +31,7 @@ pod2usage( msg => "Must specify a config file!" ) unless $configFile;
|
|||
|
||||
my $session = start( $webguiRoot, $configFile );
|
||||
|
||||
installUserProfileFields($session);
|
||||
installSettings($session);
|
||||
installFriendManagerGroup($session);
|
||||
|
||||
# Do your work here
|
||||
finish($session);
|
||||
|
|
@ -40,46 +39,9 @@ finish($session);
|
|||
#----------------------------------------------------------------------------
|
||||
# Your sub here
|
||||
|
||||
sub installUserProfileFields {
|
||||
sub installFriendManagerGroup {
|
||||
my $session = shift;
|
||||
WebGUI::ProfileField->create(
|
||||
$session,
|
||||
'receiveInboxEmailNotifications',
|
||||
{
|
||||
label => q!WebGUI::International::get('receive inbox notifications','Message_Center')!,
|
||||
visible => 1,
|
||||
required => 0,
|
||||
protected => 1,
|
||||
editable => 1,
|
||||
fieldType => 'radioList',
|
||||
dataDefault => 0,
|
||||
possibleValues => q!{
|
||||
message => WebGUI::International::get('full message','Message_Center'),
|
||||
note => WebGUI::International::get('short notification','Message_Center'),
|
||||
}!,
|
||||
},
|
||||
4,
|
||||
);
|
||||
WebGUI::ProfileField->create(
|
||||
$session,
|
||||
'receiveInboxSMSNotifications',
|
||||
{
|
||||
label => q!WebGUI::International::get('receive inbox sms','Message_Center')!,
|
||||
visible => 1,
|
||||
required => 0,
|
||||
protected => 1,
|
||||
editable => 1,
|
||||
fieldType => 'yesNo',
|
||||
dataDefault => 0,
|
||||
},
|
||||
4,
|
||||
);
|
||||
}
|
||||
|
||||
sub installSettings {
|
||||
my $session = shift;
|
||||
$session->setting->add('smsGateway', '');
|
||||
$session->setting->add('sendInboxNotificationsOnly', '');
|
||||
$session->setting->add('groupIdAdminFriends', 3);
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
Loading…
Add table
Add a link
Reference in a new issue