Révision 9d13637e
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/commerce/modules/payment/commerce_payment.rules.inc | ||
---|---|---|
180 | 180 |
); |
181 | 181 |
} |
182 | 182 |
|
183 |
$actions['commerce_payment_redirect_pane_previous_page'] = array( |
|
184 |
'label' => t('Redirect the checkout to the previous pane'), |
|
185 |
'parameter' => array( |
|
186 |
'commerce_order' => array( |
|
187 |
'type' => 'commerce_order', |
|
188 |
'label' => t('Order', array(), array( |
|
189 |
'context' => 'a drupal commerce order', |
|
190 |
)), |
|
191 |
'skip save' => TRUE, |
|
192 |
), |
|
193 |
), |
|
194 |
'group' => t('Commerce Payment'), |
|
195 |
'callbacks' => array( |
|
196 |
'execute' => 'commerce_payment_rules_redirect_pane_previous_page', |
|
197 |
), |
|
198 |
); |
|
199 |
$actions['commerce_payment_redirect_pane_next_page'] = array( |
|
200 |
'label' => t('Redirect the checkout to the next pane'), |
|
201 |
'parameter' => array( |
|
202 |
'commerce_order' => array( |
|
203 |
'type' => 'commerce_order', |
|
204 |
'label' => t('Order', array(), array( |
|
205 |
'context' => 'a drupal commerce order', |
|
206 |
)), |
|
207 |
'skip save' => TRUE, |
|
208 |
), |
|
209 |
), |
|
210 |
'group' => t('Commerce Payment'), |
|
211 |
'callbacks' => array( |
|
212 |
'execute' => 'commerce_payment_rules_redirect_pane_next_page', |
|
213 |
), |
|
214 |
); |
|
215 |
|
|
183 | 216 |
return $actions; |
184 | 217 |
} |
185 | 218 |
|
219 |
/** |
|
220 |
* Implements Rules action execution callback. |
|
221 |
* |
|
222 |
* @param stdClass $order |
|
223 |
* An order. |
|
224 |
*/ |
|
225 |
function commerce_payment_rules_redirect_pane_previous_page($order) { |
|
226 |
commerce_payment_redirect_pane_previous_page($order); |
|
227 |
} |
|
228 |
|
|
229 |
/** |
|
230 |
* Implements Rules action execution callback. |
|
231 |
* |
|
232 |
* @param stdClass $order |
|
233 |
* An order. |
|
234 |
*/ |
|
235 |
function commerce_payment_rules_redirect_pane_next_page($order) { |
|
236 |
commerce_payment_redirect_pane_next_page($order); |
|
237 |
} |
|
238 |
|
|
186 | 239 |
/** |
187 | 240 |
* Generic execution callback for the payment method. |
188 | 241 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules