Active
Project:
Omega
Version:
7.x-3.0-rc5
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2011 at 20:29 UTC
Updated:
2 Aug 2013 at 18:12 UTC
What is best practices for adding a variable to a region using Omega? Typically I would do something like the following:
//In template.php mytheme_preprocess_region(&$vars) { $vars['pizza'] = 'NOM NOM NOM'; }
Then in region--content.tpl.php (as an example)
<?php print $pizza ?>
When I attempt this the variable ($pizza in the example) isn't defined as I would expect.
Comments
Comment #1
nateman332 commentedTry using this: