]> git.mxchange.org Git - friendica.git/commitdiff
add plugin hooks to personal XRD
authorFriendika <info@friendika.com>
Sat, 1 Jan 2011 23:03:49 +0000 (15:03 -0800)
committerFriendika <info@friendika.com>
Sat, 1 Jan 2011 23:03:49 +0000 (15:03 -0800)
addon/README
mod/xrd.php

index 0264e6b24d2750d78b9702cc591d9baffd267206..83407d6a17e7db9efa3d756b75baa91d3af6d9e8 100644 (file)
@@ -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
 
 
index 0b4bd0d1e7d7a795799759fa5aa0ae6af5a01bf5..a0ecbaea806890aeffa4339abfb2197c30d3b66d 100644 (file)
@@ -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();