function imagepicker_user_view_public in Image Picker 7
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_user_view_public()
- 6.2 imagepicker.user.inc \imagepicker_user_view_public()
1 call to imagepicker_user_view_public()
- imagepicker_user_page in ./imagepicker.user.inc
- @file
@author Bob Hutchinson http://drupal.org/user/52366
@copyright GNU GPL
File
- ./imagepicker.user.inc, line 130
- @author Bob Hutchinson http://drupal.org/user/52366
@copyright GNU GPL
Code
function imagepicker_user_view_public($img_id) {
$img = _imagepicker_get_img($img_id, FALSE);
if ($img) {
$imgpath = imagepicker_get_image_path($img, 'full', array(
'uid' => $img->uid,
));
$info = image_get_info(imagepicker_get_path(FALSE, array(
'uid' => $img->uid,
)) . $img->img_name);
$content = theme('imagepicker_fview', array(
'img' => $img,
'imgpath' => $imgpath,
'info' => $info,
));
}
else {
drupal_set_message(t('Image not found.'), 'error');
$content = '';
}
return $content;
}