84 if (is_array($menu_item)) {
101 return _elgg_services()->menus->unregisterMenuItem($menu_name, $item_name);
131 if (!empty($logged_in_user) && ($logged_in_user->guid !==
$owner->guid)) {
138 if (!
$owner instanceof \
ElggEntity || empty($entity_type) || empty($entity_subtype) || !
$owner->canWriteToContainer(0, $entity_type, $entity_subtype)) {
155 'icon' =>
$name ===
'add' ?
'plus' :
'',
158 'link_class' =>
'elgg-button elgg-button-action',
elgg_unregister_menu_item(string $menu_name, string $item_name)
Remove an item from a menu.
if(!$user||!$user->canDelete()) $name
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_register_title_button(string $name= 'add', string $entity_type= '', string $entity_subtype= '')
Convenience function for registering a button to the title menu.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
elgg_register_menu_item(string $menu_name, array|\ElggMenuItem $menu_item)
Elgg navigation library Functions for managing menus and other navigational elements.