function apachesolr_update_7011 in Apache Solr Search 8
Same name and namespace in other branches
- 7 apachesolr.install \apachesolr_update_7011()
Change the namespace for the indexer from apachesolr_search to apachesolr
File
- ./
apachesolr.install, line 633 - Install and related hooks for apachesolr_search.
Code
function apachesolr_update_7011() {
if (variable_get('apachesolr_update_from_6303', FALSE)) {
return NULL;
}
$stored = variable_get('apachesolr_index_last', array());
if (isset($stored['apachesolr_search'])) {
$stored['apachesolr'] = $stored['apachesolr_search'];
unset($stored['apachesolr_search']);
variable_set('apachesolr_index_last', $stored);
}
return 'Updated the namespace variable for the index process.';
}