You are here

function footer_message_block_view in Footer Message 7

Implements hook_block_view().

File

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

Code

function footer_message_block_view($delta = '') {
  $block = array();
  switch ($delta) {

    // Display the footer message block.
    // Note that we apply the appropriate filter format before outputting HTML.
    case 'footer_message':
      $site_footer = variable_get('footer_message_msg', array(
        'value' => 'This is default site footer content.',
      ));
      $format = isset($site_footer['format']) ? $site_footer['format'] : NULL;
      $block['content'] = check_markup($site_footer['value'], $format);
      break;
  }
  return $block;
}