add plugin hooks to channel sync/import/export
This commit is contained in:
parent
f506f73d3f
commit
e45958b967
@ -616,6 +616,10 @@ function identity_basic_export($channel_id, $items = false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$addon = array('channel_id' => $channel_id,'data' => $ret);
|
||||||
|
call_hooks('identity_basic_export',$addon);
|
||||||
|
$ret = $addon['data'];
|
||||||
|
|
||||||
|
|
||||||
if(! $items)
|
if(! $items)
|
||||||
return $ret;
|
return $ret;
|
||||||
|
@ -3319,6 +3319,8 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
|
|||||||
if(array_key_exists('item_id',$arr) && $arr['item_id'])
|
if(array_key_exists('item_id',$arr) && $arr['item_id'])
|
||||||
sync_items($channel,$arr['item_id']);
|
sync_items($channel,$arr['item_id']);
|
||||||
|
|
||||||
|
$addon = array('channel' => $channel,'data' => $arr);
|
||||||
|
call_hooks('process_channel_sync_delivery',$addon);
|
||||||
|
|
||||||
// we should probably do this for all items, but usually we only send one.
|
// we should probably do this for all items, but usually we only send one.
|
||||||
|
|
||||||
|
@ -450,6 +450,8 @@ function import_post(&$a) {
|
|||||||
if(is_array($data['menu']))
|
if(is_array($data['menu']))
|
||||||
import_menus($channel,$data['menu']);
|
import_menus($channel,$data['menu']);
|
||||||
|
|
||||||
|
$addon = array('channel' => $channel,'data' => $data);
|
||||||
|
call_hooks('import_channel',$addon);
|
||||||
|
|
||||||
$saved_notification_flags = notifications_off($channel['channel_id']);
|
$saved_notification_flags = notifications_off($channel['channel_id']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user