Closed (fixed)
Project:
Image Block
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 15:31 UTC
Updated:
29 Nov 2011 at 18:20 UTC
Hi there,
I'm not sure why i started to getting this error but i tracked it down. The error is in attributes for parameter for l() function.
Documentation of l() function states that "'attributes': An associative array of HTML attributes to apply to the anchor tag. If element 'class' is included, it must be an array; " in code it is as string not as an array. to correct this
in imageblock.module in function template_preprocess_imageblock_content(&$variables)
replace
$attributes = array('class' => 'imageblock-image');
with
$attributes = array('class' => array('imageblock-image'));
and
$attributes = array('class' => 'imageblock-link');
with
$attributes = array('class' => array('imageblock-link'));
Comments
Comment #1
emosbaugh commentedThank you. I have fixed the issue and created a new release 7.x-1.2