-
Notifications
You must be signed in to change notification settings - Fork 4
/
commerce_usps.api.php
42 lines (38 loc) · 990 Bytes
/
commerce_usps.api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @file
* Defines the USPS alter functions for Drupal Commerce.
*/
/**
* Allows modules to alter the usps services that are available.
*
* @param array $usps_services
* The array of shipping services that are available.
*
* @see hook_commerce_usps_services_list_alter()
*/
function hook_commerce_usps_services_list_alter(array &$usps_services) {
// No example.
}
/**
* Allows modules to alter the V4 XML request before it is sent to USPS.
*
* @param object $request
* The request object that gets sent to USPS.
*
* @see hook_commerce_usps_build_rate_request_alter()
*/
function hook_commerce_usps_rate_v4_request_alter(&$request) {
// No example.
}
/**
* Allows modules to alter the V4 XML request before it is sent to USPS.
*
* @param object $request
* The request object that gets sent to USPS.
*
* @see hook_commerce_usps_build_rate_request_alter()
*/
function hook_commerce_usps_intl_rate_v2_request_alter(&$request) {
// No example.
}