apachesolr_index_updated

Versions
6
apachesolr_index_updated($updated = NULL)

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

▾ 9 functions call apachesolr_index_updated()

apachesolr_cron in contrib-6/apachesolr/apachesolr.module
Implementation of hook_cron().
apachesolr_delete_index in contrib-6/apachesolr/apachesolr.admin.inc
Utility function to delete the index and reset all index counters.
apachesolr_delete_node_from_index in contrib-6/apachesolr/apachesolr.module
apachesolr_index_nodes in contrib-6/apachesolr/apachesolr.module
Function to handle the indexing of nodes.
apachesolr_index_page in contrib-6/apachesolr/apachesolr.admin.inc
Gets information about the fields already in solr index.
apachesolr_index_report in contrib-6/apachesolr/apachesolr.admin.inc
apachesolr_nodeapi_mass_delete in contrib-6/apachesolr/apachesolr.index.inc
apachesolr_nodeapi_mass_update in contrib-6/apachesolr/apachesolr.index.inc
apachesolr_search_type_boost_form_submit in contrib-6/apachesolr/apachesolr_search.admin.inc
Submit callback for apachesolr_search_type_boost_form().

Code

contrib-6/apachesolr/apachesolr.module, line 515

<?php
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);
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options