function hook_uc_quote_method_alter in Ubercart 8.4
Alter shipping quote methods.
Parameters
array $methods: Array of shipping quote plugins passed by reference.
1 invocation of hook_uc_quote_method_alter()
- ShippingQuotePluginManager::__construct in shipping/
uc_quote/ src/ Plugin/ ShippingQuotePluginManager.php - Constructor for ShippingQuotePluginManager objects.
File
- shipping/
uc_quote/ uc_quote.api.php, line 19 - Hooks provided by the Shipping Quotes module.
Code
function hook_uc_quote_method_alter(array &$methods) {
// Change the label of the flat rate shipping quote plugin.
$methods['flatrate']['admin_label'] = t('Simple');
}