It would be great that themes could be able to implement a callback for ac_process_request().

For example, when there are several themes installed, and only one needs to deal with AC, this theme should be able to handle all parts of the interaction with AC, from the JavaScript file to the callback.

The patch below permits such a behavior.

CommentFileSizeAuthor
ac-theme-patch.patch7.72 KBb-prod

Comments

b-prod’s picture

If we would be really portable, we might initialize the theme (if necessary) in a hook_init() function (and probably modify the weight of the module in the system table), to take care of modules which modify the standard active theme (using $custom_theme).

I didn't implement such thing in the patch above because AC module is not used by a lot of websites, and if the need becomes true, I would be happily involved in such an implementation.

benkant’s picture

Status: Needs review » Closed (fixed)

Thanks for this B-Prod,

I've patched, tagged and made a release.