Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As described on the module page, custom search includes a Internationalization submodule which allows to limit search content to current language only. How can I apply this behaviour?
I found this snipped but using it in a custom module I get an Recoverable fatal error.
Comments
Comment #2
jdanthinne CreditAttribution: jdanthinne commentedIf you go to your Custom Search block settings, you'll see a "Languages" section there, with all the settings required to limit results by language.
Comment #3
Mario Steinitz