diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-08 17:50:24 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-08 17:50:24 -0700 |
commit | 1ebaacfd5e7e481cbc025842e78161f79f5d7cce (patch) | |
tree | 250db4405b8de259ef1d1fca8b3f552d3e18b11d | |
parent | 11e19a06b74014cd62a26f127162ff1984159dce (diff) | |
download | volse-hubzilla-1ebaacfd5e7e481cbc025842e78161f79f5d7cce.tar.gz volse-hubzilla-1ebaacfd5e7e481cbc025842e78161f79f5d7cce.tar.bz2 volse-hubzilla-1ebaacfd5e7e481cbc025842e78161f79f5d7cce.zip |
menu export
-rw-r--r-- | include/identity.php | 12 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php index 76079e93a..4d2f8b961 100644 --- a/include/identity.php +++ b/include/identity.php @@ -5,7 +5,7 @@ require_once('include/zot.php'); require_once('include/crypto.php'); - +require_once('include/menu.php'); /** * @brief Called when creating a new channel. @@ -601,6 +601,16 @@ function identity_basic_export($channel_id, $items = false) { $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) return $ret; diff --git a/version.inc b/version.inc index 89a33f525..5842b45a1 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-09-07.1148 +2015-09-08.1149 |