I have a variable in the "style_fetch" hook called $mobile (for the mobile device detection mod, unimportant for this question, but that's why it's in "style_fetch").
I cannot, for the life of me, preRegister this variable for the "footer" template!!!
Why does this not work!?
in "style_fetch":
Code:
$TEST = "TESTING";
vB_Template::preRegister('footer', array('TEST' => $TEST));
in "footer" template:
^Doesn't work.
Nor does the variable work in a conditional. What am I doing wrong!? Why does this have to be so complicated and confusing? I haven't seen even one post where someone preRegisters a variable and then uses it in a conditional, either... would the variable above be $TEST?
I'm so frustrated.