I have this code in the image module

* Theme an img tag for displaying the image.
*/
function theme_image_display($node, $label, $url, $attributes) {
return 'Only local images are allowed.title) .'" title="'. check_plain($node->title) .'" '. drupal_attributes($attributes) .' />';
}

and I think I need to put this in there...

onrightclick="alert('You have not yet figured out how to disable the right-click blocker?');"

for example but I'm not sure how, anyone able to help?

Comments

anthonylicari’s picture

/**
  * Theme an img tag for displaying the image.
  */
function theme_image_display($node, $label, $url, $attributes) {
  return '<img src="'. check_url($url) .'" alt="'. check_plain($node->title) .'" title="'. check_plain($node->title) .'" '. drupal_attributes($attributes) .' />';
}