You are here

function theme_shoutbox_interval_message in Shoutbox 7.2

Same name and namespace in other branches
  1. 6.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 174
Theme callbacks for the shoutbox module.

Code

function theme_shoutbox_interval_message($variables) {

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