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.
Hi,
I have a nested layout which I created by writing
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