Hi, i have a suggestion for future releases:

Since Colorbox output of an image doesn't seem to be supported yet, i wanted to modify the output of the imageblock content myself in
function theme_preprocess_imageblock_content(&$vars)

I only wanted some of my imageblock images wrapped with a colorbox link - the ones that have a link set. Colorbox needs a rel="colorbox" attribute to work and this has to be applied to the link that wraps image.

I considered two options to apply a custom colorbox link to a particular image:

  • Get the block_id and rebuild the $image variable for selected imageblocks
  • Get the blockimage link and rebuild the $image variable if a link is set

Neither of them worked for me.
There are no indicators in the $vars array, if the current image is linked or not. There's just the HTML output in $image, which is either a link or not. This is easy to implement, but i didn't want to modify the module itself.
And maybe there is a way to get the current block identifier from inside the theme_preprocess_imageblock_content function - but i don't know how. Could it also be passed to the $vars array?

Regards, Anni

Edit: I now used $test = unserialize($block->data); to get the imageblock_link variable. It works, though i still think, a renderable array for the image would be a more elegant solution.