menu export
This commit is contained in:
parent
11e19a06b7
commit
1ebaacfd5e
@ -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;
|
||||
|
@ -1 +1 @@
|
||||
2015-09-07.1148
|
||||
2015-09-08.1149
|
||||
|
Reference in New Issue
Block a user