You are here

function search_files_variable_rename_ifexists in Search Files 7.2

Same name and namespace in other branches
  1. 6.2 search_files.install \search_files_variable_rename_ifexists()
2 calls to search_files_variable_rename_ifexists()
search_files_directories_update_6200 in ./search_files_directories.install
search_files_update_6201 in ./search_files.install

File

./search_files.install, line 96
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);
  }
}