aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-25 21:12:43 -0700
committerfriendica <info@friendica.com>2014-04-25 21:12:43 -0700
commit2851988c969a4b2445c43fccef39b7b24a9258f8 (patch)
tree61bc5cc0b0f1c51a5053a44cb2436cfce9db7cde /include/items.php
parent3e8e67df2c838ee5fe0129bd77a0c987b151a8f3 (diff)
downloadvolse-hubzilla-2851988c969a4b2445c43fccef39b7b24a9258f8.tar.gz
volse-hubzilla-2851988c969a4b2445c43fccef39b7b24a9258f8.tar.bz2
volse-hubzilla-2851988c969a4b2445c43fccef39b7b24a9258f8.zip
A useful hook
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
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