function nlmfield_field_widget_text_to_xml should use DOMDocument to generate the XML as it becomes easier to do empty checks on subfields. If a subfield within the text widget is left empty, then it should not be included in the XML.

http://drupalcode.org/project/nlmfield.git/blob/refs/heads/7.x-1.x:/nlmf...

Comments

phayes’s picture

agreed

phayes’s picture

Issue summary: View changes

Added clarification around the function.

rahul.shinde’s picture

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