Closed (fixed)
Project:
JS Callback Handler
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2011 at 06:13 UTC
Updated:
18 Dec 2012 at 11:17 UTC
Hi,
In many cases hook_init() will not be required in order to run just a JS callback, and in our case hook_init() completely breaks because it calls functions from the menu module. Instead of putting logic into the hook_init() impementation to detect that it's running under js.php, I thought it might be neater to simply specify that hook_init() isn't required in hook_js().
Here's the patch to allow this flag.
Default is still to run it.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| js.php_.skiphookinit.patch | 610 bytes | neilnz |
Comments
Comment #1
doitDave commentedSubscribed
Comment #2
michielnugter commentedThe issue is included in the 6.x release, not yet in the 7.x branch, the method of bootstrapping has changed significantly and I cannot guarantee that the patch will work without problems there.
Comment #3
michielnugter commented