diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-01-19 09:16:51 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-01-19 09:16:51 +0100 |
commit | e9f32ef94e5cb188e86a8cf43f9580b462d0ea46 (patch) | |
tree | 553feae3fb0c8267262fb605b28857f412e57b41 /include/features.php | |
parent | 2cf4381e19a05c98c523422dce39753c7381229d (diff) | |
parent | 764d6e3407f75cbe7a6f9635dd40cd2cca0f2b4f (diff) | |
download | volse-hubzilla-e9f32ef94e5cb188e86a8cf43f9580b462d0ea46.tar.gz volse-hubzilla-e9f32ef94e5cb188e86a8cf43f9580b462d0ea46.tar.bz2 volse-hubzilla-e9f32ef94e5cb188e86a8cf43f9580b462d0ea46.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/features.php')
-rw-r--r-- | include/features.php | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/include/features.php b/include/features.php index 36eb74a9d..839faff67 100644 --- a/include/features.php +++ b/include/features.php @@ -190,6 +190,16 @@ function get_features($filtered = true) { feature_level('event_tz_select',2), ], + + [ + 'premium_channel', + t('Premium Channel'), + t('Allows you to set restrictions and terms on those that connect with your channel'), + false, + get_config('feature_lock','premium_channel'), + feature_level('premium_channel',4), + ], + [ 'advanced_dirsearch', t('Advanced Directory Search'), @@ -438,16 +448,10 @@ function get_features($filtered = true) { ], ]; + $x = [ 'features' => $arr, ]; + call_hooks('get_features',$x); - $arr['general'][] = [ - 'premium_channel', - t('Premium Channel'), - t('Allows you to set restrictions and terms on those that connect with your channel'), - false, - get_config('feature_lock','premium_channel'), - feature_level('premium_channel',4), - ]; - + $arr = $x['features']; $techlevel = get_account_techlevel(); @@ -482,7 +486,5 @@ function get_features($filtered = true) { $narr = $arr; } - $x = [ 'features' => $narr, 'filtered' => $filtered, 'techlevel' => $techlevel ]; - call_hooks('get_features',$x); - return $x['features']; + return $narr; } |