diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-01-26 16:17:28 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-01-26 16:17:28 +0100 |
commit | 4a2c0fcc36695c70c70a83ac04a8cb25f28b02d2 (patch) | |
tree | 6c39facc4b3a4fdbca9d5bce17b5ddc371e6af4a /mod/profile.php | |
parent | 1f95ba5c344a1b17c735bf2760a169beeff864c2 (diff) | |
download | volse-hubzilla-4a2c0fcc36695c70c70a83ac04a8cb25f28b02d2.tar.gz volse-hubzilla-4a2c0fcc36695c70c70a83ac04a8cb25f28b02d2.tar.bz2 volse-hubzilla-4a2c0fcc36695c70c70a83ac04a8cb25f28b02d2.zip |
Add 'jot_tool' hook, plugins can add tool icons.
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php index 505edf5ce..c84b493c5 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -134,6 +134,10 @@ function profile_content(&$a, $update = 0) { $lockstate = 'lock'; else $lockstate = 'unlock'; + + $jotplugins = ""; + call_hooks('jot_tool', $jotplugins); + $o .= replace_macros($tpl,array( '$baseurl' => $a->get_baseurl(), '$defloc' => (($is_owner) ? $a->user['default-location'] : ''), @@ -142,7 +146,8 @@ function profile_content(&$a, $update = 0) { '$lockstate' => $lockstate, '$bang' => '', '$acl' => (($is_owner) ? populate_acl($a->user, $celeb) : ''), - '$profile_uid' => $a->profile['profile_uid'] + '$profile_uid' => $a->profile['profile_uid'], + '$jotplugins' => $jotplugins )); } |