aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/AccessList.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-21 10:02:33 +0000
committerMario <mario@mariovavti.com>2022-02-21 10:02:33 +0000
commita80454978181eebf7813a10c00b3166f66300b3f (patch)
tree7f68f93c3d3894ebc05a9382ea3d7449dfdc288a /Zotlabs/Lib/AccessList.php
parent2a60f1cc6ed49ab559090c831788308fe3df0706 (diff)
downloadvolse-hubzilla-a80454978181eebf7813a10c00b3166f66300b3f.tar.gz
volse-hubzilla-a80454978181eebf7813a10c00b3166f66300b3f.tar.bz2
volse-hubzilla-a80454978181eebf7813a10c00b3166f66300b3f.zip
remove deprecated widgets and add some more widget descriptions
Diffstat (limited to 'Zotlabs/Lib/AccessList.php')
-rw-r--r--Zotlabs/Lib/AccessList.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/Zotlabs/Lib/AccessList.php b/Zotlabs/Lib/AccessList.php
index 026148c9f..f4b762eaa 100644
--- a/Zotlabs/Lib/AccessList.php
+++ b/Zotlabs/Lib/AccessList.php
@@ -311,55 +311,6 @@ class AccessList {
return $o;
}
-/* deprecated
- static function widget($every = "connections", $each = "lists", $edit = false, $group_id = 0, $cid = '', $mode = 1) {
-
- $groups = [];
-
- $r = q("SELECT * FROM pgrp WHERE deleted = 0 AND uid = %d ORDER BY gname ASC",
- intval($_SESSION['uid'])
- );
- $member_of = [];
- if ($cid) {
- $member_of = self::containing(local_channel(), $cid);
- }
-
- if ($r) {
- foreach ($r as $rr) {
- $selected = (($group_id == $rr['id']) ? ' group-selected' : '');
-
- if ($edit) {
- $groupedit = ['href' => "lists/" . $rr['id'], 'title' => t('edit')];
- }
- else {
- $groupedit = null;
- }
-
- $groups[] = [
- 'id' => $rr['id'],
- 'enc_cid' => base64url_encode($cid),
- 'cid' => $cid,
- 'text' => $rr['gname'],
- 'selected' => $selected,
- 'href' => (($mode == 0) ? $each . '?f=&gid=' . $rr['id'] : $each . "/" . $rr['id']) . ((x($_GET, 'new')) ? '&new=' . $_GET['new'] : '') . ((x($_GET, 'order')) ? '&order=' . $_GET['order'] : ''),
- 'edit' => $groupedit,
- 'ismember' => in_array($rr['id'], $member_of),
- ];
- }
- }
-
- return replace_macros(get_markup_template('group_side.tpl'), [
- '$title' => t('Privacy Groups'),
- '$edittext' => t('Edit group'),
- '$createtext' => t('Create new group'),
- '$ungrouped' => (($every === 'contacts') ? t('Channels not in any privacy group') : ''),
- '$groups' => $groups,
- '$add' => t('Add'),
- ]);
-
- }
-*/
-
static function expand($g) {
if (!(is_array($g) && count($g))) {
return [];