Closed (fixed)
Project:
Ajax Controller (AC)
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2010 at 11:13 UTC
Updated:
6 Dec 2010 at 02:14 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| ac-theme-patch.patch | 7.72 KB | b-prod |
Comments
Comment #1
b-prod commentedIf 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.
Comment #2
benkant commentedThanks for this B-Prod,
I've patched, tagged and made a release.