provide an option to toggle the view of locked features so we can use the same list in an admin feature set & lock page.
This commit is contained in:
parent
26139ee06f
commit
c076e72cbf
@ -36,7 +36,7 @@ function get_feature_default($feature) {
|
||||
}
|
||||
|
||||
|
||||
function get_features() {
|
||||
function get_features($filtered = true) {
|
||||
|
||||
$arr = array(
|
||||
|
||||
@ -98,6 +98,7 @@ function get_features() {
|
||||
|
||||
// removed any locked features and remove the entire category if this makes it empty
|
||||
|
||||
if($filtered) {
|
||||
foreach($arr as $k => $x) {
|
||||
$has_items = false;
|
||||
for($y = 0; $y < count($arr[$k]); $y ++) {
|
||||
@ -114,6 +115,7 @@ function get_features() {
|
||||
unset($arr[$k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
call_hooks('get_features',$arr);
|
||||
return $arr;
|
||||
|
@ -1 +1 @@
|
||||
2016-01-04.1268H
|
||||
2016-01-05.1269H
|
||||
|
Reference in New Issue
Block a user