I'm trying to add new regions to my template. I've created the following function in template.php

function phptemplate_regions() {
  return array(
    'right' => t('right sidebar'),
    'left' => t('left sidebar'),
    'menu_top' => t('menu top'),
    'content' => t('content'),
    'header' => t('header'),
     'footer' => t('footer')
  );
}

This doesn't seem to work and my new region 'menu_top' doesn't get added to the block admin page. Am I missing something?

I also tried calling the function themename_regions() using the name of my theme, but that didn't seem to work either.

Thanks for your help.

Comments

nevets’s picture

See the theming guide for Drupal 6. The method for add regions changed with Drupal 6 and no longer uses the phptemplate_regions() function.

www.richardsprojects.co.uk’s picture

That sorted it, thank you. Found the right bit here.

Richard Garside
www.richardsprojects.co.uk