Rules Import

Component ID

2179125

Component name

Rules Import

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module provides an easy way to import previously exported Rules definitions.

INSTALLATION

  1. Create 'sites/all/imports/rules' folder.
  2. Export the Rule you wish to import and paste the export code into separate text files with '.inc' extension.
  3. Place the newly created text files in the 'sites/all/imports/rules' subdirectory.
  4. Do not forget to add '<?php' line to the top of the files.
  5. Ensure all dependant modules are installed.
  6. Install this module.

The idea is that you could have a collection of commonly used rules in a folder. Then, when you start a project, copy the required rules definitions into this module and install. This will add all the rules in one go, saving you from using the Rule import form provided by Rules module.

If you are happy with using the import form provided by Rules module then you don't need this module. This is very small module that just makes it easier to install rules from previously saved text files.

Recommended modules