mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
new profile_sidebar_enter hook, changed profile_sidebar to array
This commit is contained in:
parent
3da2b24951
commit
b093bdeace
2 changed files with 12 additions and 3 deletions
7
boot.php
7
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;
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue