Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293248

Document a list of "reserved" variables in hook_theme that are already used by drupal_render and the FAPI

$
0
0

There are some variables that should just not be declared in hook_theme() or they run the risk of conflicting with attributes used by drupal_render() and/or the FAPI.

Examples:

type
theme
theme_wrappers
markup
prefix
suffix
pre_render
post_render
children
states
attached
cache
printed

This should all be clearly documented in the docblock for hook_theme as many themers would be unaware of all the items in the full list.


Viewing all articles
Browse latest Browse all 293248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>