getHandler('item')->getRandomItem('', array(PublisherConstants::PUBLISHER_STATUS_PUBLISHED));
if (!is_object($itemsObj)) {
return $block;
}
$block['content'] = $itemsObj->getBlockSummary(300, true); //show complete summary but truncate to 300 if only body available
$block['id'] = $itemsObj->itemid();
$block['url'] = $itemsObj->getItemUrl();
$block['lang_fullitem'] = _MB_PUBLISHER_FULLITEM;
return $block;
}
*Edit: You can see it directly here:
https://github.com/XoopsModules25x/publisher/blob/1.03_RC1/blocks/items_random_item.php
You won't find the original code you posted in there anywhere... So you must have gotten that code from somewhere else.