provide settings for mod photo and make it slightly simpler to create new module settings

This commit is contained in:
Mario
2018-09-23 17:52:32 +02:00
parent 9e22ec267c
commit 1f1d5b9181
7 changed files with 75 additions and 45 deletions

View File

@@ -104,15 +104,6 @@ function get_features($filtered = true, $level = (-1)) {
feature_level('private_notes',1),
],
[
'photo_location',
t('Photo Location'),
t('If location data is available on uploaded photos, link this to a map.'),
false,
get_config('feature_lock','photo_location'),
feature_level('photo_location',2),
],
[
'smart_birthdays',
t('Smart Birthdays'),
@@ -369,7 +360,7 @@ function get_features($filtered = true, $level = (-1)) {
'manage' => [
t('Channel Manager'),
t('Manage'),
[
'nav_channel_select',
@@ -383,7 +374,7 @@ function get_features($filtered = true, $level = (-1)) {
'network' => [
t('Activity'),
t('Network'),
[
'archives',
@@ -451,6 +442,20 @@ function get_features($filtered = true, $level = (-1)) {
],
'photos' => [
t('Photos'),
[
'photo_location',
t('Photo Location'),
t('If location data is available on uploaded photos, link this to a map.'),
false,
get_config('feature_lock','photo_location'),
]
],
'profiles' => [
t('Profiles'),