function search_files_variable_rename_ifexists in Search Files 6.2
Same name and namespace in other branches
- 7.2 search_files.install \search_files_variable_rename_ifexists()
2 calls to search_files_variable_rename_ifexists()
File
- ./
search_files.install, line 98 - Installation and update procedures for the search_files module.
Code
function search_files_variable_rename_ifexists($name, $new_name) {
global $conf;
if ($name != $new_name and isset($conf[$name])) {
variable_set($new_name, variable_get($name, NULL));
variable_del($name);
}
}