You are here

function apachesolr_search_update_6000 in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 6 apachesolr_search.install \apachesolr_search_update_6000()

Update to namespace tracking.

File

./apachesolr_search.install, line 23
Install and related hooks for apachesolr_search.

Code

function apachesolr_search_update_6000() {
  $change = variable_get('apachesolr_search_last_change', 0);
  $nid = variable_get('apachesolr_search_last_nid', 0);
  if ($change || $nid) {
    $stored = variable_get('apachesolr_index_last', array());
    $stored['apachesolr_search'] = array(
      'last_change' => $change,
      'last_nid' => $nid,
    );
    variable_set('apachesolr_index_last', $stored);
  }
  variable_del('apachesolr_search_last_change');
  variable_del('apachesolr_search_last_nid');
  return array();
}