function webform_update_7320 in Webform 7.4
Same name and namespace in other branches
- 7.3 webform.install \webform_update_7320()
Mark files uploaded through Webform that report active usage permanent.
File
- ./
webform.install, line 1237 - Webform module install/schema hooks.
Code
function webform_update_7320() {
db_query("UPDATE {file_managed} SET status = 1 WHERE fid IN (SELECT fid FROM {file_usage} WHERE module = :module_name)", array(
':module_name' => 'webform',
));
}