I'm having a bit of trouble sorting something out. I'm trying to move the $title variable to region--content.tpl.php.

I think a preprocess function - some variation of template_preprocess_region is what I need and then set the variables, but I haven't been able to sort it out or find examples.

Any guidance will be much appreciated.

  • I'm kind of guessing here, but try $variables['title'], or global $title; before trying to use $title – Geoff Jun 28 '14 at 14:34
  • Thanks, Geoff. I gave that a try, but no luck. Those are global variables and what I think I need is to make the page variables available to my region template. – friendlymachine Jun 28 '14 at 16:18
  • You can go through Omega theme code. – wolverine Jun 28 '14 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.