This project is not covered by Drupal’s security advisory policy.

When a search returns no results, this text is returned:

Your search yielded no results
* Check if your spelling is correct.
* Remove quotes around phrases to match each word individually: "blue smurf" will match less than blue smurf.
* Consider loosening your query with OR: blue smurf will match less than blue OR smurf.

The words "blue smurf" are unlikely to be appropriate for most websites, and the site owner usually wants to change them.
Unfortunately, the text is hardcoded, and can only be overriden if you are using a custom translation or the String Overrides module.
This isn't something you would want to expose to a site owner though.

The Annihilate smurfs module lets users with the appropriate permission choose their own search words to display when no results are found.

Background

For background see: How to Change "Search Yields no Result Text"
and: Replace "blue smurf" in no search results message

Features

See a live preview of the new text as you type.

Installation

Copy the annihilatesmurfs module folder to your module directory and then enable on the admin modules page.

Permissions

Grant the "administer annihilatesmurfs" permission to allow access to the settings page.

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution No further development
    No longer developed by its maintainers.
  • Module categories: Site Search
  • chart icon1 site reports using this module
  • Created by DerekAhmedzai on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases