aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-08 17:51:48 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-08 17:52:39 -0700
commit75d521d42affbafa34e87752deeb1961367de1d5 (patch)
treeae068699ab0372837d35f73146745accb6f0ce2d /include/identity.php
parentc6bdf7e891f3c0b49a1e9c40622e05aef590e2b6 (diff)
downloadvolse-hubzilla-75d521d42affbafa34e87752deeb1961367de1d5.tar.gz
volse-hubzilla-75d521d42affbafa34e87752deeb1961367de1d5.tar.bz2
volse-hubzilla-75d521d42affbafa34e87752deeb1961367de1d5.zip
menu import and sync
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 211832d51..f68b1fe4a 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -5,6 +5,7 @@
require_once('include/zot.php');
require_once('include/crypto.php');
+require_once('include/menu.php');
/**
@@ -595,6 +596,16 @@ function identity_basic_export($channel_id, $items = false) {
foreach($r as $rr)
$ret['event_item'][] = encode_item($rr,true);
}
+
+ $x = menu_list($channel_id);
+ if($x) {
+ $ret['menu'] = array();
+ for($y = 0; $y < count($x); $y ++) {
+ $m = menu_fetch($x[$y]['menu_name'],$channel_id,$ret['channel']['channel_hash']);
+ if($m)
+ $ret['menu'][] = menu_element($m);
+ }
+ }
if(! $items)