You are here

function theme_shoutbox_interval_message in Shoutbox 6.2

Same name and namespace in other branches
  1. 7.2 shoutbox.theme.inc \theme_shoutbox_interval_message()
  2. 7 shoutbox.theme.inc \theme_shoutbox_interval_message()

Theme the block message regarding auto-update interval

Parameters

$interval: The number of seconds the shouts auto-refresh

1 theme call to theme_shoutbox_interval_message()
shoutbox_add_form in ./shoutbox.module
Generates form for adding shouts.

File

./shoutbox.theme.inc, line 166
Theme callbacks for the shoutbox module.

Code

function theme_shoutbox_interval_message($interval) {

  // Check if autoupdate is enabled
  if ($interval) {
    return '<div class="shoutbox-interval-msg">' . t('Shouts automatically update every !interval seconds', array(
      '!interval' => $interval,
    )) . '</div>';
  }
}