Skip to content

Commit

Permalink
Remove search and list buttons for events
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jan 19, 2025
1 parent a4b0642 commit 993d64d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ public static function getTypeName($nb = 0)
return _n('Log', 'Logs', $nb);
}

public static function getMenuContent()
{
$menu = parent::getMenuContent();
unset($menu['links']['search'], $menu['links']['lists']);
return $menu;
}

public function prepareInputForAdd($input)
{
/** @var array $CFG_GLPI */
Expand Down

0 comments on commit 993d64d

Please sign in to comment.