You are here

function uc_file_update_7000 in Ubercart 7.3

Change 'uc_file_file_mask' variable to a preg regular expression.

File

uc_file/uc_file.install, line 248
Install, update and uninstall functions for the uc_file module.

Code

function uc_file_update_7000() {
  $mask = '/' . variable_get('uc_file_file_mask', '.*') . '/';
  variable_set('uc_file_file_mask', $mask);
  return t("Variable 'uc_file_file_mask' changed to @mask.", array(
    '@mask' => $mask,
  ));
}