Conceptually, the discovery of theme functions and templates is part of the Theme Registry. In actuality, the two discover functions (
drupal_find_theme_functions()) are 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.
- 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.
Mark functions as deprecated?
User interface changes
Mark the procedural functions as deprecated?
Data model changes