Developer's Guide

enables you to handle the module's display in various ways,
according to the current theme.
Let's see an example with PrestaShop's blockuserinfo module:
Any PrestaShop module, once installed on an online shop, can interact
with one or more "hooks". Hooks enable you to "hook" your code to the
current View at the time of the code parsing (i.e., when displaying the cart
or the product sheet, when displaying the current stock...). Specifically, a
hook is a shortcut to the various methods available from the Module
object, as assigned to that hook.
A list of PrestaShop hooks
Here's a recap of PrestaShop's module architecture: