It's a bit heavy handed to modify the theme registry for all themes based on Hexagon. The patch will move this to its own plug-in "smarter theme" which must be enabled to get the functionality that existed before the patch. When disabled, it will behave like any other theme.

It's also more granular on which features you can enable or disable. All features are enabled by default but if you are sure you don't need something here, you can disable it.

from .info:

To enable, add this line:

theme.plugins[] = smarter_theme

The following implicitly registers new hooks based on variable processor functions and .vars.inc. Introduced in #1179656: Consistent availability of variable processor, file includes and auto registration for hook__suggestions..

smarter_theme.settings[implicit_hook_registration.from_processors] = true
smarter_theme.settings[implicit_hook_registration.from_vars_inc] = true

'base_handles_suggestions' allows an invoked base theme hook to look for hook suggestions and invoke variable process functions specific to those suggestions. 'suggestions_handles_base' allows an invoked "hook suggestion" ex: theme('hook__suggestion') to process its parent base hook variable process functions. Core does this by default but it's handled differently by the plug-in. While core provides an incomplete processor list, these two combine, no matter how it's called will produce a full and predictable list of variable processors. This was also introduced in #1179656: Consistent availability of variable processor, file includes and auto registration for hook__suggestions..

smarter_theme.settings[base_handles_suggestions] = true
smarter_theme.settings[suggestions_handles_base] = true

Enables the use of SOURCE.theme.inc, HOOK.func.inc and HOOK.vars.inc files. The functionality existed for a while now but since it relies on the manipulation of the registry, the settings are specific to the plug-in.

smarter_theme.settings[enable_theme_inc] = true
smarter_theme.settings[enable_func_inc] = true
smarter_theme.settings[enable_vars_inc] = true
CommentFileSizeAuthor
#1 patch_commit_2188275ed3b3.patch58.19 KBdvessel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dvessel’s picture

Status: Active » Fixed
FileSize
58.19 KB

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.