31,003
edits
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 " | * $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. | ||