There's a new hook since cck 2.5 that lets you enter form elements etc to cck widgets, this gets your settings into the whole export import business, including features. As far as I know, conditional fields do not get exported properly, which is a shame, as this is a very useful module. I believe this would also make the module easier to maintain.

So far the only documentation I've seen on this new hook (appart from cck's code itself) is: http://www.gizra.com/content/hookwidgetsettingsalter-and-pandora

Comments

mani.atico’s picture

+1

m_z’s picture

+2 ;-)

Is anybody working on a solution towards this direction.
I think this is a much cleaner approach than the patch in http://drupal.org/node/368143

@Maintainer (peterpoe): What is your opinion on this approach? Can you modifiy Conditional Fields code in this direction? Or would you at least create a new release after somebody else created a patch?

peterpoe’s picture

This would be nice, but:
- hook_widget_settings_alter() does not include the node type in the arguments, which is needed by cf for its settings. We could grab it from the url, but it's a very ugly solution
- some of that form alteration code is shared with fieldgroups settings, which have no such hook

peterpoe’s picture

Issue summary: View changes
Status: Active » Closed (outdated)