/** * Make sure that the album has a thumbnail. If it doesn't, then grab the first handy child and * make it the album's thumbnail. We're not picky. * * @param int $itemId the album id * @return GalleryStatus a status code * boolean true if successful */ function guaranteeAlbumHasThumbnail($itemId) { MyOOS_CoreApi::requireOnce( 'modules/core/classes/helpers/GalleryItemHelper_advanced.class'); return GalleryItemHelper_advanced::guaranteeAlbumHasThumbnail($itemId); }