function uc_file_feature_settings_submit in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_file/uc_file.module \uc_file_feature_settings_submit()
- 6.2 uc_file/uc_file.module \uc_file_feature_settings_submit()
Form submission handler for uc_file_feature_settings().
See also
uc_file_feature_settings_validate()
1 string reference to 'uc_file_feature_settings_submit'
- uc_file_form_uc_product_feature_settings_form_alter in uc_file/
uc_file.module - Implements hook_form_FORM_ID_alter() for uc_product_feature_settings_form().
File
- uc_file/
uc_file.module, line 943 - Allows products to be associated with downloadable files.
Code
function uc_file_feature_settings_submit($form, &$form_state) {
// No directory now; truncate the file list.
if (empty($form_state['values']['uc_file_base_dir'])) {
uc_file_empty();
}
else {
uc_file_refresh();
}
}