function sarnia_entity_cache_form_submit in Sarnia 7
Submit function for the confirm form from sarnia_entity_cache_form().
Runs SearchApiSolrService::getRemoteFields() with $reset = TRUE.
File
- ./
sarnia.entities.inc, line 269
Code
function sarnia_entity_cache_form_submit($form, &$form_state) {
$server = $form_state['values']['server'];
$server
->getRemoteFields(TRUE);
// Tell the user what just happened.
drupal_set_message(t('Refreshed the server field cache for the %server_name server.', array(
'%server_name' => $server->name,
)));
$form_state['redirect'] = 'admin/config/search/search_api/server/' . $server->machine_name . '/sarnia/properties';
}