There were a few files Hexagon cached when it didn't need to. An extra function to scan files outside of setting them from .info was made more accessible. Previously, it set a group of files to cache only to be processed again and stored in the theme registry. Namely, the include files attached to each theming hook and alternate template suggestions. It no longer does this so the cache is smaller.

Theming paths are pushed into the theme registry instead of storing the files. This provides better compatibility with other modules such as Advanced Forums where it works strictly with these paths. These theming paths are for alternate template naming suggestions and its independence from base templates.

Removed extra preprocess functions that handled the capture of theme functions for the theming hooks implemented as functions that were also associated with variable preprocessors. That made no sense… In short, it simplifies preprocess handling for theme functions with variable preprocessors.

Calling a file through "hex_path_to_file()" now has a sensible order in which file is returned.

Calling hex_path_to_file('some-file.css') will check for the file in the following locations:

  • plugin hosted in base theme has the file?
  • base theme has the file?
  • plugin hosted in sub-theme has the file?
  • sub-theme has the file?
  • etc…

The active sub-theme will always have precedence. This also depends on the second parameter of hex_path_to_file('filename.ext', 'all|theme|plugin'). The list above assumes "all" but "theme" is the default. Before, the plug-in was checked last but that made less sense since plug-in's are meant to implement the defaults and allow the theme to override any sort of file it includes.

CommentFileSizeAuthor
#1 hexagon-808052.patch29.71 KBdvessel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dvessel’s picture

FileSize
29.71 KB

Patch.

Status: Fixed » Closed (fixed)

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