Hooks system: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 55: Line 55:
* $parameters is an array of meta-data about the datas contained by the hook (eg: the context, always accessible by $parameters->context).
* $parameters is an array of meta-data about the datas contained by the hook (eg: the context, always accessible by $parameters->context).
* $object is the object that you may work on. Eg: the product if you are in the productcard context.
* $object is the object that you may work on. Eg: the product if you are in the productcard context.
* $action is the action if one is conveyed (generally "create" or "edit").
* $action is the action if one is conveyed (generally "create", "edit" or "view").


Your function should now be called when you access the module/context and you will see the parameters and object and action.
Your function should now be called when you access the module/context and you will see the parameters and object and action.

Navigation menu