From 2851988c969a4b2445c43fccef39b7b24a9258f8 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 25 Apr 2014 21:12:43 -0700 Subject: A useful hook --- include/items.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index bbb90f742..de20cf83a 100755 --- a/include/items.php +++ b/include/items.php @@ -1838,6 +1838,9 @@ function item_store($arr,$allow_exec = false) { return $ret; } + call_hooks('item_store',$arr); + + // This hook remains for backward compatibility. call_hooks('post_remote',$arr); if(x($arr,'cancel')) { @@ -2482,6 +2485,8 @@ function tag_deliver($uid,$item_id) { return; } + $arr = array('channel_id' => $uid, 'item' => $item, 'body' => $body); + call_hooks('tagged',$arr); // Valid tag. Send a notification -- cgit v1.2.3