In some case adding javascript in _preprocess page is too late. I'm working with a zen subtheme, and javascript isn't loaded here. The js array are built for html.tpl.php, so the correct place is to add your html is the dfp_preprocess_html.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1772188_1_change_page_preprocess.patch | 471 bytes | szantog |
Comments
Comment #1
szantog commentedfix title
Comment #2
szantog commentedWell, let's make it official. :)
Comment #3
bleen commentedBut what about that comment?
I believe I have tried to out this code in preprocessing HTML but that many on the tokens failed to populate at that point. If you can confirm that I'm wrong then I'll consider this patch
Comment #4
bleen commentedAlthough ... It seems that all tests passed. Hmmm. Let me take a closer look
Comment #5
bleen commentedI took a closer works, and this looks fine. I committed the patch in #2 (fixing the phpdoc as well)
Thanks!