*/ /** * Reupload a file without destroying metadata information * * @package Reupload */ class ReuploadModule extends GalleryModule { function ReuploadModule() { global $gallery; $this->setId('reupload'); $this->setName($gallery->i18n('Reupload')); $this->setDescription($gallery->i18n('Allows reupload of pictures.')); $this->setVersion('1.0.2'); $this->setGroup('data', $gallery->i18n('Extra Data')); $this->setCallbacks(''); $this->setRequiredCoreApi(array(7, 0)); $this->setRequiredModuleApi(array(3, 0)); } /** * @see GalleryModule::performFactoryRegistrations() */ function performFactoryRegistrations() { $ret = GalleryCoreApi::registerFactoryImplementation( 'ItemEditOption', 'ReuploadPhotoOption', 'ReuploadPhotoOption', 'modules/reupload/ReuploadPhotoOption.inc', 'reupload', array('ItemEditRotateAndScalePhoto')); if ($ret) { return $ret->wrap(__FILE__, __LINE__); } return null; } } ?>