Very useful module! Thanks a lot.

Empty block is displayed when a given node does not have an image attached. Shouldn't the block be hidden in that case?

Cheers,

Roman

Comments

budda’s picture

I cannot re-create this problem. There is already code in there to check for image-type files attached to the node, and only display a block if there is at least 1 image.

$imagesrc = _nodeimageblock_get_node_images($node);
  			if(count($imagesrc) > 0) {
  			 ....
    			$block['subject'] = '';
    			$block['content'] = theme('nodeimageblock_block', $output);
  			}

Can you provide better info on how to recreate this problem?

romany’s picture

Status: Active » Closed (fixed)

Get latest CVS or .tar and this will go away. Thanks BuddaBoy.