Skip to content

Commit

Permalink
success/failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak committed Nov 14, 2024
1 parent 7a31adc commit 4c287d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion search_api_pantheon.module
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ function search_api_pantheon_form_alter(&$form, &$form_state, $form_id) {

function search_api_pantheon_form_submit($form, &$form_state) {
$rl = \Drupal::service("search_api_pantheon.reload");
$rl->reloadServer();
$rl->reloadServer() ?
drupal_set_message(t('Core reloaded successfully.')) :
drupal_set_message(t('Core reload failed.'), 'error');
}

0 comments on commit 4c287d1

Please sign in to comment.