I've written a couple of cck field modules such as cck_address and would like to know how I can add support for them. Should I create a patch for cck.inc? Or can I somehow include hook_diff in my own module? I don't see anything in cck.inc that says it has to go through cck, so I assume I can take the latter course and pretty much copy the form of content_diff into my own module. That's assuming you do an invoke_all somewhere. I haven't looked yet.

Is there anything I not seeing here? Let me know so I can proceed. Thanks.

Comments

dww’s picture

Status: Active » Fixed

yes, hook_diff() is invoked for all modules by diff.module:

  $node_diffs = module_invoke_all('diff', $old_node, $new_node);

therefore, yes, the way to add support for this is to implement hook_diff() in your own CCK module(s).

cheers,
-derek

rconstantine’s picture

Thanks. I'll get the changes into my cck_fullname and cck_address modules pronto!

Anonymous’s picture

Status: Fixed » Closed (fixed)