$vars = array(
    'item' => array(
      'uri' => $uri,
      'alt' => html_entity_decode($caption),
      'title' => html_entity_decode($caption),
    ),
    'image_style' => $size,
  );

  $markup .= '<a href="'. file_create_url($uri) .'?title='. $caption .'" class="colorbox-load" rel="gallery">' . theme_image_formatter($vars) . '</a>';

One would expect parenthesis and similar characterts to be as they should, instead running the vars through the theme image formatters will make the title field have entities (which arent decoded by browsers when hovering over an image).

Comments

joachim’s picture

Project: Image » Drupal core
Version: 7.x-1.x-dev » 7.x-dev

If this is 7.x then it's likely a core problem.

jbrown’s picture

It is not allowed to call theme functions - use theme().

marcingy’s picture

Status: Active » Closed (works as designed)

As in #2 theme functions should not be invoked this way.