Sunday, December 12, 2010

How to add region in drupal 5 & 6?

Add region in drupal5
---------------------
function mytheme_regions() {
return array(
'right' => t('right sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
'floater' => t('floater'),
'inline1' => t('inline 1')
);
}
?>

add this code in template.php

Add region in drupal6
---------------------

You gave to declare the region in info file inside the theme folder

regions[regionname] = Region name

No comments:

Post a Comment