add plugin hooks to personal XRD
This commit is contained in:
parent
d8985b3a54
commit
be3cfe8b65
|
@ -118,6 +118,12 @@ Current hooks:
|
||||||
$b is (string) HTML of nav region
|
$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
|
*** = subject to change
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,10 @@ function xrd_content(&$a) {
|
||||||
'$modexp' => 'data:application/magic-public-key,' . $salmon_key
|
'$modexp' => 'data:application/magic-public-key,' . $salmon_key
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
$arr = array('user' => $r[0], 'xml' => $o);
|
||||||
|
call_hooks('personal_xrd', $arr);
|
||||||
|
|
||||||
echo $o;
|
echo $o;
|
||||||
killme();
|
killme();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue