Download & Extend

element themehook

Part of the core Drupal API (originally part of the forms API, but also used for rendering structured content that isn't a form) is the drupal_render function. This recursively iterates through the element tree, theming the inside of each element based on the #theme property (if present) of that element.

This module registers an 'element' themehook (which because of Drupal's theming system introduces preprocessing hooks and template discovery). Developers can use this hook directly by setting #theme to 'element' or 'element__SOMETHINGCUSTOM' on the desired element, or by defining new themehooks that use 'element' as the new themehook's 'original hook'.

This module is intended to be used as a dependency for other modules or as a tool for developers fluent with Drupal's theming system working on a custom theme. There is no advantage to installing this module unless another module requires it, or you want to use its functionality in creating your custom theme.

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.1 tar.gz (6.93 KB) | zip (8.04 KB) 2009-May-19 Notes

Development releases

Version Downloads Date Links
6.x-1.x-dev tar.gz (6.85 KB) | zip (7.9 KB) 2011-Feb-25 Notes

Project Information

  • Module categories: Developer
  • Maintenance status: Unknown
  • Development status: Unknown
  • Reported installs: 27 sites currently report using this module. View usage statistics.
  • Downloads: 1,563
  • Last modified: May 19, 2009

Maintainers for element themehook

  • effulgentsia - 2 commits
    last: 4 years ago, first: 4 years ago

Issues for element themehook

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here