Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: nateman332 commentedTry using this: