/** * @return Form */ function SyncForm() { $form = new Form($this, 'SyncForm', new FieldSet(), new FieldSet($btn = new FormAction('doSync', _t('FILESYSTEMSYNC', 'Look for new files')))); $form->addExtraClass('actionparams'); $form->setFormMethod('GET'); $form->setFormAction('dev/tasks/FilesystemSyncTask'); $btn->describe(_t('AssetAdmin_left.ss.FILESYSTEMSYNC_DESC', 'SilverStripe maintains its own database of the files & images stored in your assets/ folder. Click this button to update that database, if files are added to the assets/ folder from outside SilverStripe, for example, if you have uploaded files via FTP.')); return $form; }