You are here

function uc_file_feature_settings_submit in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_file/uc_file.module \uc_file_feature_settings_submit()
  2. 7.3 uc_file/uc_file.module \uc_file_feature_settings_submit()

Submit handler for uc_file_feature_settings().

See also

uc_file_feature_settings()

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 1091

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();
  }
}