static function install() { module::set_version("gwtorganise", 1); upload_configuration::setResize(false); upload_configuration::setMaxWidth(500); upload_configuration::setMaxHeight(400); }
static function extractForm($form) { $resize = $form->configure->resize->value; $max_width = $form->configure->max_width->value; $max_height = $form->configure->max_height->value; upload_configuration::setResize($resize); upload_configuration::setMaxWidth($max_width); upload_configuration::setMaxHeight($max_height); }