This patch attached moves the functionality which generates the $block contents into a wrapper functions which accepts the $node, $delta (which is really the Field Name) and optionally the $field.

This means the core module functionality remains entirely unchanges, however it allows people (like me) to invoke the function directly. For example, this is handy if you want to generate the CCK Block and render it directly into a variable using the theme preprocess node system... For example, teamed with ImageField, you can have the main "field_image" as the large preview of and image and then configure a CCK Block field to render them as thumbnails (via ImageCache). With a theme-level tweak on the node, exposing the functionality of this module has allowed me to render the thumbnail versions of a field directly into the node.

I hope this make sense - I have rolled the patch against DRUPAL-6--1.

Cheers for this awesomely useful module!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Looks interesting. Unfortunately, I'm very busi at the moment. I'll have a look at the patch as soon as possible.

xjm’s picture

Tracking.