You are here

function imagepicker_user_upload in Image Picker 5.2

Same name and namespace in other branches
  1. 5 imagepicker.module \imagepicker_user_upload()
  2. 6.2 imagepicker.upload.inc \imagepicker_user_upload()
  3. 7 imagepicker.upload.inc \imagepicker_user_upload()
1 call to imagepicker_user_upload()
imagepicker_user_page in ./imagepicker.module
Account functions

File

./imagepicker.module, line 1975
Enables permitted roles to upload images for insertion into configured nodes.

Code

function imagepicker_user_upload() {
  global $user;
  variable_del('imagepicker_advanced_browser_pagestart');
  if (variable_get('imagepicker_upload_progress_enabled', 1)) {
    $content = theme('imagepicker_upload_progress_get_script', variable_get('imagepicker_upload_progress_delay', 0));
  }
  $content .= "<div class='imgp_help'>" . t('Upload images. You can give them a title and description') . "</div>";
  $content .= imagepicker_quota_ok('user', $user);
  return $content;
}