Closed (fixed)
Project:
Zero Point
Version:
7.x-1.1
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2012 at 19:35 UTC
Updated:
1 Oct 2015 at 00:48 UTC
Jump to comment: Most recent
I am trying to add some global variables in the preproccess function as follows:
function zeropoint_preprocess_node(&$vars) {
$GLOBALS['user']->x = $x;
}
initially, it appears this works as I think it should, however one inside a given node, the new variable dissapears from the object. This also happens when I set a new variable:
function zeropoint_preprocess_node(&$vars) {
$GLOBALS['newobject']->x = $x;
}
Any help would be appreciated.
Comments
Comment #1
florian commentedThis was fixed in newer versions.