function theme_progress_bar


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_progress_bar($variables)
cle7 theme_progress_bar($variables)
elmsmedia7 theme_progress_bar($variables)
icor7 theme_progress_bar($variables)
meedjum_blog7 theme_progress_bar($variables)
mooc7 theme_progress_bar($variables)

Returns HTML for a progress bar.

Note that the core Batch API uses this only for non-JavaScript batch jobs.


$variables: An associative array containing:

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

Related topics

1 theme call to theme_progress_bar()
_batch_progress_page_nojs in includes/
Outputs a batch processing page without JavaScript support.
2 string references to the theme hook from theme_progress_bar()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in includes/
Provides theme registration for themes across .inc files.
_batch_progress_page_nojs in includes/
Outputs a batch processing page without JavaScript support.


includes/, line 2261
The theme system, which controls the output of Drupal.


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;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.