You can use hooks to interact with the Unplug Skin in a programmatic way. This is great for developers or webmasters who need to inject content (or anything else) in a scalable, flexible manner.
Hooks Common to All Templates
hook_before_html— insert anything before the HTML output (just after the opening
<body>tag) on every page
hook_after_html— insert anything after the HTML output (just before the closing
</body>tag) on every page
Template- and Context-specific Hooks
In the Unplug Skin, the following elements each have four hooks associated with them by default:
If each of the above elements can be represented by
$hook, then the four hooks available on each element are as follows:
hook_before_$hook(before the opening tag)
hook_top_$hook(just after the opening tag)
hook_bottom_$hook(just before the closing tag)
hook_after_$hook(after the closing tag)
To illustrate, using the
header element as an example, these are the four hooks:
hook_before_header(before the opening tag)
hook_top_header(just after the opening tag)
hook_bottom_header(just before the closing tag)
hook_after_header(after the closing tag)
trackbacks element only includes before and after hooks.
As you can see, the Unplug Skin provides a ton of specific hook locations for you to reference. And if you don’t see an available hook where you want to inject some content, you can always create your own hooks wherever you want!