You are here

function _imagepicker_view_content in Image Picker 5.2

3 calls to _imagepicker_view_content()
imagepicker_admin_view in ./imagepicker.module
imagepicker_user_view in ./imagepicker.module
imagepicker_user_view_public in ./imagepicker.module

File

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

Code

function _imagepicker_view_content($img, $imgpath, $info) {
  $content .= '<div id="imgp_img_view">' . ($img['img_title'] ? '<div id="imgp_img_view_title">' . $img['img_title'] . '</div>' : '') . '<img id="imgp_img_view_img" src="' . $imgpath . '" alt="' . $img['img_title'] . '" title="' . $img['img_name'] . '" />' . ($img['img_description'] ? '<div id="imgp_img_view_desc">' . nl2br($img['img_description']) . '</div>' : '') . '<div>' . t('Width') . ": " . $info['width'] . "&nbsp;&nbsp;&nbsp;" . t('Height') . ": " . $info['height'] . "&nbsp;&nbsp;&nbsp;" . t('Type') . ": " . $info['extension'] . "&nbsp;&nbsp;&nbsp;" . t('Size') . ": " . $info['file_size'] . '</div></div>';
  return $content;
}