You are here

function theme_acquia_purge_status_widget in Acquia Purge 7

Same name and namespace in other branches
  1. 6 acquia_purge.admin.inc \theme_acquia_purge_status_widget()

Returns HTML for the Acquia Purge status widget.

Parameters

array $variables: An associative array containing:

  • total: Total amount of actions initially queued for purging.
  • remaining: Remaining number of purge actions still to be processed.
  • good: Number of purge actions that have already taken place.
  • bad: Number of queue items that failed purging.
  • percent: Value between 0-100 representing the progress percentage.
  • running: Whether URLs are being purged or not.
  • purgehistory: Array with recently purged URL's.

File

./acquia_purge.admin.inc, line 463
Admin page callbacks and theme functions for the Acquia Purge module.

Code

function theme_acquia_purge_status_widget(array $variables) {
  if ($variables['running']) {
    return theme('acquia_purge_status_bar_widget', $variables);
  }
  else {
    $message = t('Idle, accepting purges');
    return "<div class=\"messages status\">\n{$message}</div>\n";
  }
}