aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-24 15:44:09 -0400
committercash <cash.costello@gmail.com>2011-06-24 15:44:09 -0400
commit6eadb6791d33236aa30eb2a130dda0b2e7bd64e1 (patch)
tree610faac1ef2fd3bc5675f7c91bfffabcb040b850 /mod
parent5dccec8307cc0a1a4fde99209de42dd6ff13fd25 (diff)
downloadelgg-6eadb6791d33236aa30eb2a130dda0b2e7bd64e1.tar.gz
elgg-6eadb6791d33236aa30eb2a130dda0b2e7bd64e1.tar.bz2
Fixes #3204 adds hook trigger so that wire sends out status updates
Diffstat (limited to 'mod')
-rw-r--r--mod/thewire/start.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 2d66c475c..9d3993b6f 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -278,6 +278,16 @@ function thewire_save_post($text, $userid, $access_id, $parent_guid = 0, $method
if ($guid) {
add_to_river('river/object/thewire/create', 'create', $post->owner_guid, $post->guid);
+
+ // let other plugins know we are setting a user status
+ $params = array(
+ 'entity' => $post,
+ 'user' => $post->getOwnerEntity(),
+ 'message' => $post->description,
+ 'url' => $post->getURL(),
+ 'origin' => 'thewire',
+ );
+ elgg_trigger_plugin_hook('status', 'user', $params);
}
return $guid;