function theme_image_attach_attached_images_block in Image 6
Theme the attached images block.
Parameters
$nid: The attaching node's id.
$image_nodes: The attached image nodes.
1 theme call to theme_image_attach_attached_images_block()
- image_attach_block in contrib/
image_attach/ image_attach.module - Implementation of hook_block().
File
- contrib/
image_attach/ image_attach.module, line 719 - image_attach.module
Code
function theme_image_attach_attached_images_block($nid, $image_nodes = array()) {
// Only return block content if there are images.
if (is_array($image_nodes) && count($image_nodes)) {
$options = array(
'size' => variable_get('image_attach_block_0_size', IMAGE_THUMBNAIL),
'link' => 'image',
);
$output = theme('image_attach_attached_images', $nid, $image_nodes, $options);
$output = '<div class="all-attached-images">' . $output . '</div>';
return $output;
}
}