If you use a new API like ARR, make it your own API and don't extend it.
You could extend API like Page, Node, User... but why your own?!
PHP Code:
<?php
if (!defined('VB_ENTRY')) {
die('Access denied.');
}
class TestImportArray_Api_Arr extends vB_Api
{
public static function getArray($prevResult)
{
return [1,2,3,4];
}
}
HTML Code:
{vb:data userIds, testimportarray:arr, getArray}
{vb:debugvardump $userIds}
There is a working example-mod here:
https://vbulletin.org/forum/showthre...light=skeleton