You are here

function theme_imagepicker_quota_message in Image Picker 7

Same name and namespace in other branches
  1. 6.2 imagepicker.module \theme_imagepicker_quota_message()
1 theme call to theme_imagepicker_quota_message()
imagepicker_quota_ok in ./imagepicker.functions.inc
Checks quotas

File

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

Code

function theme_imagepicker_quota_message($variables) {
  $message1 = $variables['message1'];
  $message2 = $variables['message2'];
  $form = $variables['form'];
  $label = $variables['label'];
  $help = $variables['help'];
  $output = $label ? '<fieldset><legend>' . $label . '</legend>' : '';
  $output .= $message1 ? '<div class="messages">' . $message1 . '</div>' : '';
  $output .= $help ? '<div class="imgp_help">' . $help . '</div>' : '';
  $output .= render($form);
  $output .= $message2 ? '<div class="messages">' . $message2 . '</div>' : '';
  $output .= $label ? '</fieldset>' : '';
  return $output;
}