You are here

function apachesolr_access_rebuild_nodeaccess in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr_access/apachesolr_access.module \apachesolr_access_rebuild_nodeaccess()
  2. 6.3 apachesolr_access/apachesolr_access.module \apachesolr_access_rebuild_nodeaccess()

Force Solr to do a total re-index when node access rules change.

This is unfortunate because not every node is going to be affected, but there is little we can do.

_state

Parameters

$form:

1 string reference to 'apachesolr_access_rebuild_nodeaccess'
apachesolr_access_form_node_configure_rebuild_confirm_alter in apachesolr_access/apachesolr_access.module
Implements hook_form_alter().

File

apachesolr_access/apachesolr_access.module, line 191

Code

function apachesolr_access_rebuild_nodeaccess($form, $form_state) {
  drupal_set_message(t('Solr search index will be rebuilt.'));

  // Clear last updated
  apachesolr_clear_last_index_position();
}