aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-28 18:10:04 -0800
committerfriendica <info@friendica.com>2013-11-28 18:10:04 -0800
commiteae33275840495d27717f95f9647cf96c1c1d6cd (patch)
tree37a52f14099de5e306b728fa266665882b920b8a /include/items.php
parent8e0d3c2d6f2c4e23eacb62203b8a754db20cfb8c (diff)
downloadvolse-hubzilla-eae33275840495d27717f95f9647cf96c1c1d6cd.tar.gz
volse-hubzilla-eae33275840495d27717f95f9647cf96c1c1d6cd.tar.bz2
volse-hubzilla-eae33275840495d27717f95f9647cf96c1c1d6cd.zip
item store hooks
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 45c5f5ac9..e380be488 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1432,6 +1432,12 @@ function encode_rel_links($links) {
function item_store($arr,$allow_exec = false) {
+ $d = array('item' => $arr, 'allow_exec' => $allow_exec);
+ call_hooks('item_store', $d );
+ $arr = $d['item'];
+ $allow_exec = $d['allow_exec'];
+
+
$ret = array('result' => false, 'item_id' => 0);
if(! $arr['uid']) {
@@ -1808,6 +1814,15 @@ function item_store($arr,$allow_exec = false) {
function item_store_update($arr,$allow_exec = false) {
+
+
+ $d = array('item' => $arr, 'allow_exec' => $allow_exec);
+ call_hooks('item_store_update', $d );
+ $arr = $d['item'];
+ $allow_exec = $d['allow_exec'];
+
+
+
$ret = array('result' => false, 'item_id' => 0);
if(! intval($arr['uid'])) {
logger('item_store_update: no uid');