Skip to content

Commit

Permalink
Updated warning text.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 29, 2025
1 parent 7920ac4 commit 4a63502
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quant.module
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ function quant_preprocess_views_view(array &$variables) {

// If the view has exposed filters, add a warning for admins.
if ($view->exposed_data && \Drupal::currentUser()->hasRole('administrator')) {
\Drupal::messenger()->addWarning(t('The view (@view_id) on this page has exposed filters which need special handling for a static website.<br/> <a href="https://docs.quantcdn.io/integrations/drupal">See the documentation for your options</a>.', ['@view_id' => $view->id()]));
\Drupal::messenger()->addWarning(t('The view (@view_id - @view_display) has exposed filters which need special handling for a static website.<br/> <a href="https://docs.quantcdn.io/integrations/drupal">See the documentation for your options</a>.', ['@view_id' => $view->id(), '@view_display' => $view->current_display]));
}

}

0 comments on commit 4a63502

Please sign in to comment.