<hooks> - anything between this tag and </hooks> will be included in the drop down
<hooktype type="name"> - The name of your hook group, you should group all common hooks under a group so you can find them quickly. Make sure you don't use a name already used by a default hooktype.
<hook> - The name of your hook, this must be the same as the hook's name in the php code
XML file:
HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<hooks>
<hooktype type="Test">
<hook>left_custom_top</hook>
<hook>right_custom_top</hook>
<hook>top_custom_top</hook>
<hook>bottom_custom_top</hook>
</hooktype>
</hooks>
I am assuming that you are working in a PHP file that includes /forums/includes/global.php.
PHP
PHP Code:
($hook = vBulletinHook::fetch_hook('left_custom_top')) ? eval($hook) : false;
($hook = vBulletinHook::fetch_hook('right_custom_top')) ? eval($hook) : false;
($hook = vBulletinHook::fetch_hook('top_custom_top')) ? eval($hook) : false;
($hook = vBulletinHook::fetch_hook('bottom_custom_top')) ? eval($hook) : false;