mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Create event for contact_photo_menu hook
This commit is contained in:
parent
9cf0ce0b99
commit
d34861ee96
5 changed files with 17 additions and 2 deletions
|
@ -1312,9 +1312,17 @@ class Contact
|
|||
}
|
||||
}
|
||||
|
||||
$args = ['contact' => $contact, 'menu' => &$menu];
|
||||
$args = ['contact' => $contact, 'menu' => $menu];
|
||||
|
||||
Hook::callAll('contact_photo_menu', $args);
|
||||
$eventDispatcher = DI::eventDispatcher();
|
||||
|
||||
$args = $eventDispatcher->dispatch(
|
||||
new ArrayFilterEvent(ArrayFilterEvent::CONTACT_PHOTO_MENU, $args),
|
||||
)->getArray();
|
||||
|
||||
if (is_array($args['menu'])) {
|
||||
$menu = $args['menu'];
|
||||
}
|
||||
|
||||
$menucondensed = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue