api_format_data can also return an array
This commit is contained in:
parent
37aef32440
commit
b4cf27e767
|
@ -946,7 +946,7 @@ function api_create_xml($data, $root_element)
|
||||||
* @param string $type Return type (atom, rss, xml, json)
|
* @param string $type Return type (atom, rss, xml, json)
|
||||||
* @param array $data JSON style array
|
* @param array $data JSON style array
|
||||||
*
|
*
|
||||||
* @return (string|object) XML data or JSON data
|
* @return (string|object|array) XML data or JSON data
|
||||||
*/
|
*/
|
||||||
function api_format_data($root_element, $type, $data)
|
function api_format_data($root_element, $type, $data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue