You are here

function theme_imagepicker_fullpage in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.module \theme_imagepicker_fullpage()
1 theme call to theme_imagepicker_fullpage()
imagepicker_image_page in ./imagepicker.functions.inc
Menu callback; presents the image page for imagepicker

File

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

Code

function theme_imagepicker_fullpage($image, $source, $link) {
  $output = '<div id="imgp_page"><div id="imgp_page_img">';
  $output .= '<a href="' . $source . '" alt="' . $image['img_title'] . '" target="_blank">';
  $output .= '<img src="' . $source . '" alt="' . $image['img_title'] . '" /></a></div>';
  $output .= $image['img_description'] ? '<div>' . nl2br($image['img_description']) . '</div>' : '';
  $output .= $link ? '<div><a href="#" onclick="history.back()">' . t('Return to page') . '</a></div>' : '';
  $output .= '</div>';
  return $output;
}