Wednesday, July 10, 2013

Manually assigning content to regions

Content can be manually assigned to regions with drupal_set_content() in Drupal 6 or drupal_add_region_content() for Drupal 7. For example in Drupal 6, drupal_set_content('header', 'Welcome!') would assign the text 'Welcome!' to the header region.

No comments:

Post a Comment