function uc_quote_method_settings_submit in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_quote/uc_quote.admin.inc \uc_quote_method_settings_submit()
- 7.3 shipping/uc_quote/uc_quote.admin.inc \uc_quote_method_settings_submit()
Submit handler for uc_quote_method_settings().
File
- shipping/
uc_quote/ uc_quote.module, line 854 - The controller module for fulfillment modules that process physical goods.
Code
function uc_quote_method_settings_submit($form_id, $form_values) {
$enabled = array();
$method_weight = array();
foreach ($form_values['methods'] as $id => $method) {
$enabled[$id] = $method['uc_quote_enabled'];
$method_weight[$id] = $method['uc_quote_method_weight'];
}
variable_set('uc_quote_enabled', $enabled);
variable_set('uc_quote_method_weight', $method_weight);
variable_set('uc_quote_type_weight', $form_values['uc_quote_type_weight']);
variable_set('uc_store_shipping_type', $form_values['uc_store_shipping_type']);
workflow_ng_clear_cache();
drupal_set_message(t('The configuration options have been saved.'));
}