aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-01-26 16:17:28 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-01-26 16:17:28 +0100
commit4a2c0fcc36695c70c70a83ac04a8cb25f28b02d2 (patch)
tree6c39facc4b3a4fdbca9d5bce17b5ddc371e6af4a /mod/network.php
parent1f95ba5c344a1b17c735bf2760a169beeff864c2 (diff)
downloadvolse-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/network.php')
-rw-r--r--mod/network.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index f9badda78..083912f86 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -79,6 +79,9 @@ function network_content(&$a, $update = 0) {
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
+ $jotplugins = "";
+ call_hooks('jot_tool', $jotplugins);
+
$o .= replace_macros($tpl,array(
'$return_path' => $a->cmd,
'$baseurl' => $a->get_baseurl(),
@@ -87,7 +90,8 @@ function network_content(&$a, $update = 0) {
'$lockstate' => $lockstate,
'$acl' => populate_acl((($group) ? $group_acl : $a->user), $celeb),
'$bang' => (($group) ? '!' : ''),
- '$profile_uid' => $_SESSION['uid']
+ '$profile_uid' => $_SESSION['uid'],
+ '$jotplugins' => $jotplugins
));