You are here

function theme_imagepicker_user_config in Image Picker 7

Same name and namespace in other branches
  1. 6.2 imagepicker.module \theme_imagepicker_user_config()
1 theme call to theme_imagepicker_user_config()
imagepicker_user_config_admin in ./imagepicker.user.inc
Menu callback; presents the configuration settings form for imagepicker user.

File

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

Code

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