To add regions for Drupal 5.xADD this code in its entirety to the bottom of your template.php file: /** Define the regions **/ function framework_regions() { return array( ‘left’ => t(‘left sidebar’), ‘right’ => t(‘right sidebar’), ‘content’ => t(‘content’), ‘header’ => t(‘header’), ‘footer’ => t(‘footer’), ‘newregion’ => t(‘new region’), ); }
To add regions for Drupal 6.x ADD the following code to you themename.info file: regions[left] = Left sidebar regions[right] = Right sidebar regions[content] = Content regions[header] = Header regions[footer] = Footer regions[newregion] = New Region
No comments:
Post a Comment