diff options
author | friendica <info@friendica.com> | 2012-11-05 15:26:01 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-05 15:26:01 -0800 |
commit | 4f1170b65618f6455f6432a8b90152fe45d4eeea (patch) | |
tree | 388cc5d4fb0de500fc72033945bf60b84483e542 /mod/settings.php | |
parent | 2752b58f3323a15b964f6518b7720cb81ccf1b0e (diff) | |
download | volse-hubzilla-4f1170b65618f6455f6432a8b90152fe45d4eeea.tar.gz volse-hubzilla-4f1170b65618f6455f6432a8b90152fe45d4eeea.tar.bz2 volse-hubzilla-4f1170b65618f6455f6432a8b90152fe45d4eeea.zip |
change permission settings from radio buttons to select boxes
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/mod/settings.php b/mod/settings.php index a78f25015..e275ae9f5 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -765,7 +765,7 @@ function settings_content(&$a) { $permiss = array(); - $perm_cats = array( + $perm_opts = array( array( t('Nobody except yourself'), 0), array( t('Only those you specifically allow'), PERMS_SPECIFIC), array( t('Anybody in your address book'), PERMS_CONTACTS), @@ -776,23 +776,17 @@ function settings_content(&$a) { foreach($global_perms as $k => $perm) { - - $permiss[$k] = array( - 'key' => $k, - 'label' => $perm[3], - 'fields' => array() - ); - $column = $perm[0]; - foreach($perm_cats as $cat) { - if((! $perm[2]) && $cat[1] == PERMS_PUBLIC) + $options = array(); + foreach($perm_opts as $opt) { + if((! $perm[2]) && $opt[1] == PERMS_PUBLIC) continue; - $permiss[$k]['fields'][] = array( $column, $cat[0], $cat[1], '', (($channel[$column] == $cat[1]) ? '1' : '')); + $options[$opt[1]] = $opt[0]; } - + $permiss[] = array($k,$perm[3],$channel[$perm[0]],$perm[4],$options); } -logger('permiss: ' . print_r($permiss,true)); +// logger('permiss: ' . print_r($permiss,true)); |