Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Brief description:
A must have for heavey themers, this small but powerful module will become a must for CSS based themes. Please submit any feature requests that you would like to see contributed to this module. Body classes allow for some very intuitive and powerful css changes such as quickly hiding un-needed form fields from someone with the "manager" role, swapping random images or logos, updating images based on the users locale etc.
Key Features:
- Enable, disable and customize body classes.
- Theme utility functions.
Included body classes:
- Path
- Option to aggregate paths so rather than 'node 1 edit' you will get 'node 1 edit node-1 node-1-edit' allowing for more flexibility when theming.
- Random
- Option of random range to generate classes from.
- User Role
- Locale
- Tokens: node, global
Utility Functions
- themer_add_class
- Add a body class from within your code.
- themer_class_date_prox
- Return class(es) based on the proximity of one date to another.
- themer_string_to_css
- Covert to a css friendly string.
- themer_copyright
- Dynamic copyright information function.
Development by vision media
Project information
- Module categories: Content Display, Developer Tools
- 15 sites report using this module
- Created by tjholowaychuk on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.