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

This is a developer and site builder module for changing Drupal variables depending on configurable conditions. It currently utilizes Rules, but may support additional methods down the road, such as Context.

Requirements

Rules

Usage

  1. Create a new rule with the event of "Drupal is initializing." This is essential for this module to work. It ensures the variable has been modified before it is used.
  2. Add any conditions you wish to limit this rule to. See below regarding the new "Page being viewed" condition that comes with this module.
  3. Finish the rule by adding the "Change Drupal variable" action.

Example

For the page content type, all comments on posts before January 2010 need to be displayed flat, but after January 2010 they should be threaded. The content type is configured to display comments as threaded. Create a new rule when Drupal is initializing and when the path matches the path pattern that pages have. Also set a condition for when the creation date for the current node is before January 2010. Finally, create an action to change a Drupal variable. Select the "comment_default_mode_page" variable and set the value to COMMENT_MODE_FLAT.

Bonus Rules Condition: Page being viewed

This module also includes a rules condition that acts upon the currently viewed in the same way as the Block module's visibility method.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution No further development
    No longer developed by its maintainers.
  • Created by pianomansam 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