I want to set a menu item of the main menu as active (class="active").
I'm specifically looking for a hook or function, not a contrib module.
I have seen recommendations for Context, and I have looked in the module code, but it uses hooks which I cannot find on the API-Site.