You are here

function apachesolr_delete_index_form_validate in Apache Solr Search 5

File

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

Code

function apachesolr_delete_index_form_validate($form, $form_values) {
  if (!$form_values['delete_index']) {
    form_set_error('delete_index', t('If you want to delete the Solr index, you must check the confirmation box.'));
  }
  if (!user_access('administer site configuration')) {
    drupal_access_denied();
  }
}