18 Jun
2008
18 Jun
'08
5:25 p.m.
On 18 Jun 2008, at 5:20 PM, Juan Rodriguez wrote:
Does anybody have any clue? It seems quite weird to me...
might be better and more consistent to use a static embedded in a function. ie: function myblock($variables = null) { static $vars = null; if (is_array($variables)) { $vars = $variables; } return $variables; } and just use the myblock($vars) in the right preprocess or _variables, and use myblock() when you want to get the content.