diff options
author | friendica <info@friendica.com> | 2012-11-28 19:23:39 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-28 19:23:39 -0800 |
commit | e1380525841509ae9bf05c11bf27f655567e63ae (patch) | |
tree | 6b35beb1b89acbac1d115f127c8b6932eed9acb1 /mod/settings.php | |
parent | 05e08cb5d2967a12c479ab94187b1ef1bde0a094 (diff) | |
download | volse-hubzilla-e1380525841509ae9bf05c11bf27f655567e63ae.tar.gz volse-hubzilla-e1380525841509ae9bf05c11bf27f655567e63ae.tar.bz2 volse-hubzilla-e1380525841509ae9bf05c11bf27f655567e63ae.zip |
backport features categories and add some new ones like the affinity slider
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/settings.php b/mod/settings.php index 5c3d7dead..ef52388e2 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -654,17 +654,22 @@ function settings_content(&$a) { $arr = array(); $features = get_features(); - foreach($features as $f) { - $arr[] = array('feature_' .$f[0],$f[1],((intval(get_pconfig(local_user(),'feature',$f[0]))) ? "1" : ''),$f[2],array(t('Off'),t('On'))); + + foreach($features as $fname => $fdata) { + $arr[$fname] = array(); + $arr[$fname][0] = $fdata[0]; + foreach(array_slice($fdata,1) as $f) { + $arr[$fname][1][] = array('feature_' .$f[0],$f[1],((intval(get_pconfig(local_user(),'feature',$f[0]))) ? "1" : ''),$f[2],array(t('Off'),t('On'))); + } } - $tpl = get_markup_template("settings_features.tpl"); $o .= replace_macros($tpl, array( '$form_security_token' => get_form_security_token("settings_features"), '$title' => t('Additional Features'), '$features' => $arr, - '$submit' => t('Submit') + '$submit' => t('Submit'), + '$field_yesno' => 'field_yesno.tpl', )); return $o; } |