aboutsummaryrefslogtreecommitdiffstats
path: root/include/features.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-01-22 09:34:08 +0100
committerGitHub <noreply@github.com>2018-01-22 09:34:08 +0100
commit131baa9f4584b74ab76328d776c0bb5ce603da7d (patch)
treec962a68dbf7874e326f4ca268fe0183ac184ea12 /include/features.php
parent8e475810a74f738fe3b23648b904639e5099d995 (diff)
parent1709dbd376af3171815f25b7055fb41da53924cb (diff)
downloadvolse-hubzilla-131baa9f4584b74ab76328d776c0bb5ce603da7d.tar.gz
volse-hubzilla-131baa9f4584b74ab76328d776c0bb5ce603da7d.tar.bz2
volse-hubzilla-131baa9f4584b74ab76328d776c0bb5ce603da7d.zip
Merge pull request #10 from redmatrix/dev
Dev
Diffstat (limited to 'include/features.php')
-rw-r--r--include/features.php26
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;
}