Posted by jospBln on August 10, 2012 at 11:10am
1 follower
| Project: | Omega |
| Version: | 7.x-3.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I have a nested layout which I created by writing
<?php
function MYTHEMENAME_alpha_page_structure_alter(&$vars) {
$vars['#excluded']['content']['#weight'] = 2;
$vars['#excluded']['sidebar_first']['#weight'] = 3;
$vars['content']['content']['content_slider']['content'] = $vars['#excluded']['content'];
$vars['content']['content']['content_slider']['sidebar_first'] = $vars['#excluded']['sidebar_first'];
}
?>in my template.php
Now I created a second layout with the DELTA and the CONTEXT Module.
Unfortunately the function MYTHEMENAME_alpha_page_structure_alter(&$vars) {} also effects my second layout.
How do I restrict the function to one layout?
All the best
Joerg