--- uc_file.module 2009-09-21 07:34:48.000000000 -0700 +++ uc_file.norefresh.module 2009-12-03 18:31:18.000000000 -0800 @@ -150,7 +150,9 @@ } // Rebuild the file list. - uc_file_refresh(); + if (user_access('administer users') && variable_get('uc_file_refresh_files_user', FALSE) == TRUE) { + uc_file_refresh(); + } $form['file'] = array( '#type' => 'fieldset', @@ -1047,6 +1049,13 @@ '#prefix' => '
', '#suffix' => '
', ); + + $form['uc_file_refresh_files_user'] = array( + '#type' => 'checkbox', + '#title' => t('Refresh Files on User Edit Form'), + '#default_value' => variable_get('uc_file_refresh_files_user', FALSE), + '#description' => t('Refresh the files list when a user with "Administer Store" permissions views a User Edit form.') + ); return $form; }