aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-18 20:05:44 -0800
committerFriendika <info@friendika.com>2011-01-18 20:05:44 -0800
commitb093bdeace4908cc43ba40ac8c145b6c9a6eb730 (patch)
treeccf7568603872ee7d197ab017236b2bbb1321845 /boot.php
parent3da2b249516b415392a11ec62a4bb598080941d1 (diff)
downloadvolse-hubzilla-b093bdeace4908cc43ba40ac8c145b6c9a6eb730.tar.gz
volse-hubzilla-b093bdeace4908cc43ba40ac8c145b6c9a6eb730.tar.bz2
volse-hubzilla-b093bdeace4908cc43ba40ac8c145b6c9a6eb730.zip
new profile_sidebar_enter hook, changed profile_sidebar to array
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 0567e41d6..d7f32dbaf 100644
--- a/boot.php
+++ b/boot.php
@@ -2009,6 +2009,8 @@ function profile_sidebar($profile) {
if((! is_array($profile)) && (! count($profile)))
return $o;
+ call_hooks('profile_sidebar_enter', $profile);
+
$fullname = '<div class="fn">' . $profile['name'] . '</div>';
$pdesc = '<div class="title">' . $profile['pdesc'] . '</div>';
@@ -2062,7 +2064,10 @@ function profile_sidebar($profile) {
'$homepage' => $homepage
));
- call_hooks('profile_sidebar', $o);
+
+ $arr = array('profile' => $profile, 'entry' => $o);
+
+ call_hooks('profile_sidebar', $arr);
return $o;
}}