function auditfiles_update_7100 in Audit Files 7.3
Same name and namespace in other branches
- 7.4 auditfiles.install \auditfiles_update_7100()
Updates the inclusion and exclusion strings to use semi-colons.
File
- ./
auditfiles.install, line 21 - Install, update and uninstall functions for the auditfiles module.
Code
function auditfiles_update_7100() {
$strings = array(
'auditfiles_exclude_files' => '.htaccess',
'auditfiles_exclude_extensions' => '',
'auditfiles_exclude_paths' => 'color css ctools js',
'auditfiles_include_domains' => '',
);
foreach ($strings as $key => $value) {
$files = trim(variable_get($key, $value));
if ($files) {
$files = explode(' ', $files);
if (count($files) > 1) {
variable_set($key, implode(';', $files));
}
}
}
}