Source of file AssetAdminSyncFilesExtension.php
Size: 0,368 Bytes - Last Modified: 2021-12-23T10:25:20+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/AssetAdminSyncFilesExtension.php
12345678910111213141516171819 | <?php /** * Remove the blasphemy that is known as sync files! */ class AssetAdminSyncFilesExtension extends Extension { private static $enable_sync_files_button = false; public function updateEditForm($form) { $enable = Config::inst()->get('AssetAdmin', 'enable_sync_files_button'); if (!$enable){ $form->Fields()->removeByName('SyncButton'); } } } |