function b_yogurt_lastpictures_show($options) { global $xoopsDB, $xoopsModule, $xoopsModuleConfig; $myts =& MyTextSanitizer::getInstance(); $block = array(); /** * Filter for fetch votes ishot and isnothot */ $criteria = new criteria('cod_img', 0, ">"); $criteria->setSort("cod_img"); $criteria->setOrder("DESC"); $criteria->setLimit($options[0]); /** * Creating factories of pictures and votes */ //$album_factory = new Xoopsyogurt_imagesHandler($xoopsDB); $pictures_factory = new Xoopsyogurt_imagesHandler($xoopsDB); $block = $pictures_factory->getLastPicturesForBlock($options[0]); return $block; }