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
|
groupIdAdminCache
|
||||||
groupIdAdminCron
|
groupIdAdminCron
|
||||||
groupIdAdminDatabaseLink
|
groupIdAdminDatabaseLink
|
||||||
|
groupIdAdminFriends
|
||||||
groupIdAdminGraphics
|
groupIdAdminGraphics
|
||||||
groupIdAdminGroup
|
groupIdAdminGroup
|
||||||
groupIdAdminGroupAdmin
|
groupIdAdminGroupAdmin
|
||||||
|
|
|
||||||
|
|
@ -3728,7 +3728,6 @@ LongTruncOk=1</p>
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
'settings groupIdAdminAdSpace label' => {
|
'settings groupIdAdminAdSpace label' => {
|
||||||
message => q{AdSpace},
|
message => q{AdSpace},
|
||||||
lastUpdated => 0,
|
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' => {
|
'settings groupIdAdminGraphics label' => {
|
||||||
message => q{Graphics},
|
message => q{Graphics},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,7 @@ pod2usage( msg => "Must specify a config file!" ) unless $configFile;
|
||||||
|
|
||||||
my $session = start( $webguiRoot, $configFile );
|
my $session = start( $webguiRoot, $configFile );
|
||||||
|
|
||||||
installUserProfileFields($session);
|
installFriendManagerGroup($session);
|
||||||
installSettings($session);
|
|
||||||
|
|
||||||
# Do your work here
|
# Do your work here
|
||||||
finish($session);
|
finish($session);
|
||||||
|
|
@ -40,46 +39,9 @@ finish($session);
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Your sub here
|
# Your sub here
|
||||||
|
|
||||||
sub installUserProfileFields {
|
sub installFriendManagerGroup {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
WebGUI::ProfileField->create(
|
$session->setting->add('groupIdAdminFriends', 3);
|
||||||
$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', '');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
Loading…
Add table
Add a link
Reference in a new issue