Warning message

Documentation is currently being migrated into the new system. Some pages might be temporarily missing, and some guides might appear empty. Thank you for your patience while we are improving Drupal.org documentation.

Mission statement and highlighted region

Last updated on
August 31, 2016 - 14:15

Drupal 6.x

In Drupal 6, the page template receives a special variable called $mission. This contains the mission statement, displaying it on the front page. Drupal 6 themes also had an option on the theme settings page to toggle this functionality.

In .info:

features[] = mission

In page.tpl.php:

<?php print $mission; ?>

Drupal 7.x

Drupal 7 removes the mission setting (and the option toggle) in favor of the more general custom block placement in regions. Drupal 7 core themes now include a region named 'highlighted' which uses the same display as D6's mission statement area. Whether this region has content now depends on administrators setting block placement, and is no longer limited to the front page.

If your theme defines custom regions, and does not include a "highlighted" region, you may define the region by adding it to the existing list of regions your .info file. If the theme does not define regions in the .info file, the regions provided by core will be inherited automatically, and you'll only need to ensure that you print it in page.tpl.php.

in .info:

regions[highlighted] = Highlighted

in page.tpl.php:

<?php print render($page['highlighted']); ?>