Is it already possible to pass an argument to the display formatter theme functions? It could reduce some kind of redundant theming functions. If this is not already in the works, I can look into posting a patch later this week but I am in a hurry today.

Comments

swentel’s picture

It's not already in the works - unless I'm missing the point somewhere. Feel free to post a patch!

swentel’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Component: Code » ND Core
Status: Active » Closed (fixed)

We're closing this one for now. After a lot of discussions, we found it pretty hard to implement this. The best way way for arguments or using one theming function is a technique also used by imagecache. Look at imagecache_theme() and imagecache_field_formatter_info() for inspiration. If you have a patch, please test against dev version which has drastically changed by now.