You are here

function theme_imagepicker_stats in Image Picker 7

Same name and namespace in other branches
  1. 6.2 imagepicker.module \theme_imagepicker_stats()
1 theme call to theme_imagepicker_stats()
imagepicker_group_stats in ./imagepicker.functions.inc
statistics

File

./imagepicker.module, line 1480
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function theme_imagepicker_stats($variables) {
  $header = $variables['header'];
  $rows = $variables['rows'];
  $message = $variables['message'];
  $pref = $variables['pref'];
  $suff = $variables['suff'];
  $label = $variables['label'];
  $output = $label ? '<fieldset><legend>' . $label . '</legend>' : '';
  if (count($rows)) {
    $output .= $pref . theme('table', array(
      'header' => $header,
      'rows' => $rows,
    )) . $suff;
  }
  else {
    $output .= '<div class="messages">' . $message . '</div>';
  }
  $output .= $label ? '</fieldset>' : '';
  return $output;
}