/** This returns all the albums in a channel. Those can be photogalleries or text with attachments. * * @param int * * @mixed array of node records. Each node includes the node content and userinfo, and attachment records. **/ public function getAlbums($nodeid) { if (empty($nodeid)) { throw new vB_Exception_Api('invalid_data'); } if (!vB::getUserContext()->getChannelPermission('forumpermissions', 'canview', $nodeid)) { throw new vB_Exception_Api('no_permission'); } $nodes = $this->library->getAlbums($nodeid); $this->library->removePrivateDataFromNodeList($nodes); return $nodes; }