The XML was created with string operations, which makes an alter hook unreasonably difficult to write. Converting the XML assembly to an array and using format_xml_elements() to create the XML lets other modules work with an array format, similar to most other alter hooks.
The XML was created with string operations, which makes an alter hook unreasonably difficult to write. Converting the XML assembly to an array and using
format_xml_elements()
to create the XML lets other modules work with an array format, similar to most other alter hooks.Addresses backdrop-contrib/project#25.