function apachesolr_nodeaccess_rebuild_nodeaccess in Apache Solr Search 5.2
Same name and namespace in other branches
- 5 contrib/apachesolr_nodeaccess/apachesolr_nodeaccess.module \apachesolr_nodeaccess_rebuild_nodeaccess()
- 6 contrib/apachesolr_nodeaccess/apachesolr_nodeaccess.module \apachesolr_nodeaccess_rebuild_nodeaccess()
- 6.2 contrib/apachesolr_nodeaccess/apachesolr_nodeaccess.module \apachesolr_nodeaccess_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.
File
- contrib/
apachesolr_nodeaccess/ apachesolr_nodeaccess.module, line 141
Code
function apachesolr_nodeaccess_rebuild_nodeaccess($form_id, &$form) {
drupal_set_message(t('Solr search index will be rebuilt.'));
node_access_needs_rebuild(TRUE);
apachesolr_clear_last_index();
}