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

**I am dropping this project as a lot of requests have come in and the Search and Replace Scanner module does a lot of what this one does (http://drupal.org/project/scanner). Please switch over and use that one if you still require this type of functionality.

Search and Replace is a common task that is performed all the time at a code level and a document level so why not a drupal level? This simple module creates an administration page that allows you to perform a search for a string (3 in length or larger) and replace it with another string across whatever content types you define. Version 1.1+ adds some other cool qualifiers:
* Perform just a search
* Perform a search or search-and-replace of node bodies, node titles, or both
* Perform a case sensitive or insensitive search
* Select All Types button to snag 'em all faster
* Ability to type %NULL% in the Replace field in order to replace a text string with nothing (as well as trap for accidentally doing it)
* Creates a new revision for each node it modifies
* Creates a log message that states what the search and replace terms are

Right now this is fairly basic but some potential future features:
* Specific permissions so that it can have it's own page / block instead of just an admin settings page (This is the case in the 6.x branch)
* Searching fields other then the body field like CCK text fields or titles
* perform a search and then specifically select which nodes to perform replacements within

This is a very common task and before this module there was no easy way (I've found) to accomplish it. This will be integrated into the Outline Designer as an to provide optional additional functionality to the OD project.

KNOWN ISSUES
*When you search for items in folder paths there can be glitches, it'll be fixed in a later version. Example replacement that doesn't work correctly replacing /courses/ with /courses2/ the backslash characters aren't being escaped correctly so it replaces correctly w/ the new text but then appends the old text to the front of the body element. Just noticed this the other day when doing a lot of heavy replacing. For now, avoid backslashes if you can and it should be fine

Project information

  • Created by btopro 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