Experimental project

This is a sandbox project, which contains experimental code for developer use only.

The node_replace_body.module allows an administrator to run a search and replace on node bodies of any content type. It is essentially a simple stripped down version of Scanner (http://drupal.org/project/scanner) for Drupal 7. If you are using Drupal 5 or 6 and require more functionality, Scanner is probably a better option.

Requirements:

  • Drupal 7.x
  • Devel Module

The Devel module is used to display search results cleanly.

Features:

  • Search node bodies for specific regex patterns
  • Replace specific regex patterns in node bodies
  • Test Run your regex pattern with any custom text

To do:

  • Remove Devel dependency
  • Find better way of displaying test run results than drupal_set_message
  • Look into security implications of accepting direct regex patterns from administrator
  • Add ability to search/replace other fields

Project information

  • Created by epoitras on , updated