You are here

function brilliant_gallery_brokenimage in Brilliant Gallery 7

Same name and namespace in other branches
  1. 6.4 functions.inc \brilliant_gallery_brokenimage()
  2. 7.2 OLD_brilliant_gallery_functions.inc \brilliant_gallery_brokenimage()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 call to brilliant_gallery_brokenimage()
resizeimage in ./brilliant_gallery_functions.inc

File

./brilliant_gallery_functions.inc, line 107

Code

function brilliant_gallery_brokenimage($msg, $width = 150, $height = 30) {
  header('Content-type: image/jpeg');
  $im = imagecreatetruecolor($width, $height);
  $bgc = imagecolorallocate($im, 0, 0, 0);
  $tc = imagecolorallocate($im, 255, 255, 255);
  imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
  imagestring($im, 1, 5, 5, $msg, $tc);
  imagejpeg($im);
  exit;
}