The Theme Rules module provides an action to switch themes. It affects a user's account, as though they changed the setting in their own profile.

Drupal 7.x

Using Entity API, Rules can natively change a user's theme. For example:

{ "rules_set_user_theme" : {
    "LABEL" : "Set user theme",
    "PLUGIN" : "rule",
    "REQUIRES" : [ "rules" ],
    "USES VARIABLES" : {
      "user" : { "label" : "User", "type" : "user" },
      "theme" : { "label" : "Theme", "type" : "text" }
    },
    "DO" : [ { "data_set" : { "data" : [ "user:theme" ], "value" : [ "theme" ] } } ]
  }
}

Background Discussions

Rules issue: #417664: Action: switch theme
ThemeKey issue: #647716: Integrate with Rules

Acknowledgements

Madhusudhan Srinivasa of QED42 is the co-creator of this module.

Downloads

Version Downloads Date Links
6.x-1.0 tar.gz (7.37 KB) | zip (7.95 KB) 2012-Apr-19 Notes

Project Information


Maintainers for Theme Rules

  • mitchell - 3 commits
    last: 1 year ago, first: 3 years ago

Issues for Theme Rules

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants
nobody click here