function uc_file_empty in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_file/uc_file.module \uc_file_empty()
- 7.3 uc_file/uc_file.module \uc_file_empty()
Removes all downloadable files, as well as their associations.
1 call to uc_file_empty()
- uc_file_feature_settings_submit in uc_file/
uc_file.module - Submit handler for uc_file_feature_settings().
File
- uc_file/
uc_file.module, line 1251
Code
function uc_file_empty() {
$files = db_query("SELECT * FROM {uc_files}");
while ($file = db_fetch_object($files)) {
_uc_file_prune_db($file->fid);
}
}