function apachesolr_search_update_6002 in Apache Solr Search 6.2
Same name and namespace in other branches
- 6 apachesolr_search.install \apachesolr_search_update_6002()
Update mis-named variables.
File
- ./
apachesolr_search.install, line 55 - Install and related hooks for apachesolr_search.
Code
function apachesolr_search_update_6002() {
$ret = array();
$date_settings = variable_get('apacehsolr_search_date_boost', '');
$comment_settings = variable_get('apacehsolr_search_comment_boost', '');
if ($date_settings) {
variable_set('apachesolr_search_date_boost', $date_settings);
}
if ($comment_settings) {
variable_set('apachesolr_search_comment_boost', $comment_settings);
}
variable_del('apacehsolr_search_date_boost');
variable_del('apacehsolr_search_comment_boost');
return $ret;
}