Problem/Motivation
Conceptually, the discovery of templates is part of the Theme Registry. At the moment, the discovery (drupal_find_theme_templates()
) is still in theme.inc
and portions of them call the Theme Registry service.
The practical implication is that extending/modifying template discovery is much harder with these procedural functions.
Proposed resolution
- Create methods on the theme registry service for finding theme templates and theme functions.
- Have the procedural functions to nothing more than wrap the service.
Remaining tasks
Mark functions as deprecated?
Update interface?
User interface changes
None
API changes
Mark the procedural functions as deprecated?
Data model changes
none