Skip to content

Commit cfba5b6

Browse files
authored
Improve hook descriptions
1 parent 3106ef7 commit cfba5b6

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

ps_googleanalytics.php

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public function hookDisplayOrderConfirmation($params)
103103
}
104104

105105
/**
106-
* Footer hook ; to load JS script for standards actions such as product clicks
106+
* Footer hook.
107+
* This function is run to load JS script for standards actions such as product clicks
107108
*/
108109
public function hookDisplayFooter()
109110
{
@@ -113,7 +114,8 @@ public function hookDisplayFooter()
113114
}
114115

115116
/**
116-
* Homepage hook ; to manage analytics for product list associated to home featured, news products and best sellers Modules
117+
* Homepage hook.
118+
* This function is run to manage analytics for product list associated to home featured, news products and best sellers Modules
117119
*/
118120
public function hookDisplayHome()
119121
{
@@ -123,7 +125,8 @@ public function hookDisplayHome()
123125
}
124126

125127
/**
126-
* Product page footer hook ; to load JS for product details view
128+
* Product page footer hook
129+
* This function is run to load JS for product details view
127130
*/
128131
public function hookDisplayFooterProduct($params)
129132
{
@@ -134,7 +137,8 @@ public function hookDisplayFooterProduct($params)
134137
}
135138

136139
/**
137-
* Hook admin order to send transactions and refunds details
140+
* Hook admin order.
141+
* This function is run to send transactions and refunds details
138142
*/
139143
public function hookDisplayAdminOrder()
140144
{
@@ -148,7 +152,8 @@ public function hookDisplayAdminOrder()
148152
}
149153

150154
/**
151-
* Admin office header hook ; to add google analytics js
155+
* Admin office header hook.
156+
* This function is run to add Google Analytics JavaScript
152157
*/
153158
public function hookDisplayBackOfficeHeader()
154159
{
@@ -158,7 +163,8 @@ public function hookDisplayBackOfficeHeader()
158163
}
159164

160165
/**
161-
* Product cancel action hook in Back office ; to add google analytics js
166+
* Product cancel action hook (in Back office).
167+
* This function is run to add Google Analytics JavaScript
162168
*/
163169
public function hookActionProductCancel($params)
164170
{
@@ -168,7 +174,8 @@ public function hookActionProductCancel($params)
168174
}
169175

170176
/**
171-
* Save cart event hook ; to implement addtocart and remove from cart functionality
177+
* Save cart event hook.
178+
* This function is run to implement 'add to cart' and 'remove from cart' functionalities
172179
*/
173180
public function hookActionCartSave()
174181
{

0 commit comments

Comments
 (0)