aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-01 15:03:49 -0800
committerFriendika <info@friendika.com>2011-01-01 15:03:49 -0800
commitbe3cfe8b65031103b195854e0770ed6b3f57d9a1 (patch)
treed2f8907a7e23fed86dba1e7e49ef11547b904fdf
parentd8985b3a548422dca8a8d659f4c66975366818df (diff)
downloadvolse-hubzilla-be3cfe8b65031103b195854e0770ed6b3f57d9a1.tar.gz
volse-hubzilla-be3cfe8b65031103b195854e0770ed6b3f57d9a1.tar.bz2
volse-hubzilla-be3cfe8b65031103b195854e0770ed6b3f57d9a1.zip
add plugin hooks to personal XRD
-rw-r--r--addon/README6
-rw-r--r--mod/xrd.php4
2 files changed, 10 insertions, 0 deletions
diff --git a/addon/README b/addon/README
index 0264e6b24..83407d6a1 100644
--- a/addon/README
+++ b/addon/README
@@ -118,6 +118,12 @@ Current hooks:
$b is (string) HTML of nav region
+'personal_xrd' - called prior to output of personal XRD file.
+ $b is an array
+ 'user' => the user record for the person
+ 'xml' => the complete XML to be output
+
+
*** = subject to change
diff --git a/mod/xrd.php b/mod/xrd.php
index 0b4bd0d1e..a0ecbaea8 100644
--- a/mod/xrd.php
+++ b/mod/xrd.php
@@ -39,6 +39,10 @@ function xrd_content(&$a) {
'$modexp' => 'data:application/magic-public-key,' . $salmon_key
));
+
+ $arr = array('user' => $r[0], 'xml' => $o);
+ call_hooks('personal_xrd', $arr);
+
echo $o;
killme();