You are here

function apachesolr_index_updated in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_index_updated()

Helper function to keep track of when the index has been updated.

9 calls to apachesolr_index_updated()
apachesolr_cron in ./apachesolr.module
Implementation of hook_cron().
apachesolr_delete_index in ./apachesolr.admin.inc
Utility function to delete the index and reset all index counters.
apachesolr_delete_node_from_index in ./apachesolr.module
apachesolr_index_nodes in ./apachesolr.module
Function to handle the indexing of nodes.
apachesolr_index_page in ./apachesolr.admin.inc
Gets information about the fields already in solr index.

... See full list

File

./apachesolr.module, line 516
Integration with the Apache Solr search application.

Code

function apachesolr_index_updated($updated = NULL) {
  if (isset($updated)) {
    if ($updated) {
      variable_set('apachesolr_index_updated', (int) $updated);
    }
    else {
      variable_del('apachesolr_index_updated');
    }
  }
  return variable_get('apachesolr_index_updated', 0);
}