My understanding of hooks is that they are there to extend the functionality of the mediawiki software (to write an extension or some bit of code with to extend it). Manual:Hooks has an explanation and some examples of how hooks are called/invoked for extension writers or users who need to write functions for it. The examples provided there are just that, it doesn't mean it has all the code in it to do certain things. You'd have to write the code, create an extension using hooks, or find an extension that already uses the hooks mentioned.
As an example, we couldn't just take the BeforePageDisplay hook and use it's example as-is, we had to write the functions required to do what we wanted. So we use the following in our LocalSettings.php to hide some utilities for non-logged in users:
$wgHooks['BeforePageDisplay'][] = 'efCustomBeforePageDisplay';
/* Hide Utilities for non-logged in users */
function efAddSkinStyles(OutputPage &$out, Skin &$skin) {
if(!$skin->getUser()->isLoggedIn()) {
if ($skin->getSkinName() == 'pivot') {
$out->addInlineStyle('#p-Utilities, li#n-New-Page, li#n-Special-Pages, li#n-Multi-upload { display:none; }');
}
} else {
// Do nothing
}
return true;
}
$wgHooks['BeforePageDisplay'][] = 'efAddSkinStyles';