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:
redmatrix 2016-01-05 20:38:32 -08:00
parent 26139ee06f
commit c076e72cbf
2 changed files with 16 additions and 14 deletions

View File

@ -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;

View File

@ -1 +1 @@
2016-01-04.1268H
2016-01-05.1269H