function apachesolr_index_action_form_reset_confirm_submit in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.admin.inc \apachesolr_index_action_form_reset_confirm_submit()
- 7 apachesolr.admin.inc \apachesolr_index_action_form_reset_confirm_submit()
Submit handler for the deletion form.
File
- ./
apachesolr.admin.inc, line 983 - Administrative pages for the Apache Solr framework.
Code
function apachesolr_index_action_form_reset_confirm_submit($form, &$form_state) {
if (!empty($form_state['build_info']['args'][0]['env_id'])) {
$env_id = $form_state['build_info']['args'][0]['env_id'];
$form_state['redirect'] = 'admin/settings/apachesolr/settings/' . $env_id . '/index';
}
else {
$env_id = apachesolr_default_environment();
$form_state['redirect'] = 'admin/settings/apachesolr';
}
module_load_include('inc', 'apachesolr', 'apachesolr.index');
apachesolr_index_mark_for_reindex($env_id);
drupal_set_message(t('All the content on your site is queued for indexing. You can wait for it to be indexed during cron runs, or you can manually reindex it.'));
// $form_state['storage'] must be unset for redirection to occur. Otherwise
// $form_state['rebuild'] is automatically set and this form will be
// rebuilt.
unset($form_state['storage']);
}