Themekey is a project mainly written in PHP and JAVASCRIPT, it's free.
// $Id$
Name: themekey
Authors: Markus Kalkbrenner | Cocomore AG
Carsten Müller | Cocomore AG
Thilo Wawrzik
ThemeKey is meant to be a generic theme switching module. It allows you to switch the theme for different paths and based on object properties (e.g. node field values). It can also be easily extended to support additional paths or properties as exposed by other modules.
Documentation for users and developers is very sparse at the moment. I hope to complete the docs in the next few weeks. Thanks for your patience :)
Place whole themekey folder into your Drupal modules/ or better sites/x/modules/ directory.
Enable the themekey module by navigating to administer > modules
Bring up themekey configuration screens by navigating to administer > settings > themekey
How to use ThemeKey UI on node forms ...
"ThemeKey Properties" adds additional properties to ThemeKey module. Download it from http://drupal.org/project/themekey_properties
HOOK_themekey_properties() Attributes Key: namespace:property Value: array()
validator => Callback function to validate a rule starting with that property (optional) TODO: describe validator arguments and return value static => true/false, static properties don't occur in properties drop down and have fixed operator and value (optional)
Maps Key: none (indexed) Value: array()
HOOK_themekey_global() Global properties Key: namespace:property Value: property value (scalar value or array of scalar values)
HOOK_themekey_paths() Paths Key: none (indexed) Value: array()
HOOK_themekey_load_validators() include files containing validators