I just ran into an issue where my module's hook_nodeapi($op = "view") got a node with some strange data for a node-reference field. It should be just a list of array(nid => ) items, but instead I got this:

                            [field_sourcecode] => Array
                                (
                                    [0] => Array
                                        (
                                            [nid] => Array
                                                (
                                                    [nid] => 
                                                    [_error_element] => field_sourcecode][0][nid][nid
                                                )
 
                                            [_weight] => 0
                                            [_error_element] => field_sourcecode][0][nid][nid
                                        )

Which seems caused by the fact that Mollom sends form data instead of an actual node to node_build_content().
But if I read the last comment in #277626: Checking CCK nodes with drop down lists lead to SAX 0x0 parsing error correctly, node_build_content() is already being replaced so this will be solved in the future?

Comments

dave reid’s picture

Status: Active » Closed (duplicate)

Yes it will be fixed with #245682: Enable use of Mollom for any form because you will select which fields you want included in textual analysis.