function hook_commerce_shipping_method_info in Commerce Shipping 7.2
Defines a shipping method.
Return value
array An associative array of shipping method info arrays keyed by machine-name. Each info array must contain values for the following keys:
- title: the human readable title of the shipping method
Values for the following keys are optional:
- display_title: the title used for the method on the front end; defaults to the title
- description: a basic description of the service
- active: boolean indicating whether or not the default Rule for collecting rates for this shipping method should be defined enabled; defaults to TRUE
When loaded, a shipping service info array will also contain a module key whose value is the name of the module that defined the service.
1 function implements hook_commerce_shipping_method_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_commerce_shipping_method_info()
- commerce_shipping_methods in ./
commerce_shipping.module - Returns an array of shipping methods defined by enabled modules.
File
- ./
commerce_shipping.api.php, line 25 - Contains API for commerce shipping module.
Code
function hook_commerce_shipping_method_info() {
// No example.
}