function apachesolr_nan_delete_entity in Apache Solr Not-A-Node 7.2
function apachesolr_nan_delete_entity().
Helper function to delete a nan entity.
Parameters
$env:
$delete_path:
Return value
bool
1 call to apachesolr_nan_delete_entity()
File
- ./
apachesolr_nan.admin.inc, line 313 - Administrative functions and form builders for Apache Solr NAN Search.
Code
function apachesolr_nan_delete_entity($env, $delete_path) {
if ($nan = apachesolr_nan_get_nan_by_path($delete_path)) {
$nan
->delete();
apachesolr_index_delete_entity_from_index($env, 'apachesolr_nan', $nan->id);
return TRUE;
}
return FALSE;
}