public static function USPSUtilities::packageTypes in Ubercart 8.4
Convenience function for select form elements.
1 call to USPSUtilities::packageTypes()
- uc_usps_form_node_form_alter in shipping/
uc_usps/ uc_usps.module - Implements hook_form_BASE_FORM_ID_alter() for node_form().
File
- shipping/
uc_usps/ src/ USPSUtilities.php, line 83
Class
- USPSUtilities
- Utility routines for USPS Shipping.
Namespace
Drupal\uc_uspsCode
public static function packageTypes() {
return [
'VARIABLE' => t('Variable'),
'FLAT RATE ENVELOPE' => t('Flat rate envelope'),
'PADDED FLAT RATE ENVELOPE' => t('Padded flat rate envelope'),
'LEGAL FLAT RATE ENVELOPE' => t('Legal flat rate envelope'),
'SMALL FLAT RATE ENVELOPE' => t('Small flat rate envelope'),
'WINDOW FLAT RATE ENVELOPE' => t('Window flat rate envelope'),
'GIFT CARD FLAT RATE BOX' => t('Gift card flat rate box'),
'FLAT RATE BOX' => t('Flat rate box'),
'SM FLAT RATE BOX' => t('Small flat rate box'),
'MD FLAT RATE BOX' => t('Medium flat rate box'),
'LG FLAT RATE BOX' => t('Large flat rate box'),
'REGIONALRATEBOXA' => t('Regional rate box A'),
'REGIONALRATEBOXB' => t('Regional rate box B'),
'RECTANGULAR' => t('Rectangular'),
'NONRECTANGULAR' => t('Non-rectangular'),
];
}