theme_progress_bar

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 6 theme_progress_bar($percent, $message)
7 – 8 theme_progress_bar($variables)

Returns HTML for a progress bar.

Parameters

$variables An associative array containing:

  • percent: The percentage of the progress.
  • message: A string containing information to be displayed.

Related topics

Code

includes/theme.inc, line 1988

<?php
function theme_progress_bar($variables) {
  $output = '<div id="progress" class="progress">';
  $output .= '<div class="bar"><div class="filled" style="width: ' . $variables['percent'] . '%"></div></div>';
  $output .= '<div class="percentage">' . $variables['percent'] . '%</div>';
  $output .= '<div class="message">' . $variables['message'] . '</div>';
  $output .= '</div>';

  return $output;
}
?>