Annihilate smurfs

Categories

Component ID

1162306

Component name

Annihilate smurfs

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

622

Component created

Component changed

Component body

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.