You are here

function footer_message_preprocess_page in Footer Message 7

Same name and namespace in other branches
  1. 8 footer_message.module \footer_message_preprocess_page()

Implements hook_preprocess_HOOK().

File

./footer_message.module, line 66
This module provides a configurable footer message as a block.

Code

function footer_message_preprocess_page(&$variables) {

  // Provide $footer_message as a theme variable to hook_preprocess_page()
  // and page.tpl.php.
  // Note that we apply filter format before outputting HTML.
  $site_footer = variable_get('footer_message_msg', array(
    'value' => 'This is default site footer content.',
  ));
  $format = isset($site_footer['format']) ? $site_footer['format'] : NULL;
  $variables['footer_message'] = check_markup($site_footer['value'], $format);
}