Closed (fixed)
Project:
Omega
Version:
7.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2011 at 21:03 UTC
Updated:
17 Sep 2011 at 16:21 UTC
hey there,
I'm trying to override the function omega_process_region by placing it in mytheme/process/process-region.inc.
instead of being run, the function is displayed as text in my page. inside process-region.inc, I've renamed that function to mytheme_process_region, then mytheme_omega_process_region and even mytheme_alpha_process_region, but still no joy.
I also looked up the documentation, but couldn't find anything on the matter.
my goal is to display the site logo both in the header and footer, using the correct function. is that possible? is it the right function to use?
thanks in advance.
cheers,
Luciano
Comments
Comment #1
fubhy commentedMake sure you have it wrapped in the php tag and use MYTHEME_alpha_process_region().
Comment #2
luco commentedgreat! it worked. thanks :]
I'm used to putting only the opening PHP tag, not the closing one. but then again I don't mess around with .INC files.
Comment #3
fubhy commentedThe closing one is not required (in fact its bad code style in that case).
Comment #4
luco commentedthanks. I'll clear that up.