1.20.x installer.install installer_update_1001()

Add Silkscreen Project repository

File

modules/installer/installer.install, line 19
Install, update and uninstall functions for the installer module.

Code

function installer_update_1001() {
  $config = config('installer.settings');
  $server = $config->get('installer_server');
  $servers['silkscreen'] = array(
    'url' => 'https://projects.silkscreencms.org',
    'name' => 'Silkscreen',
    'site_name' => 'SilkscreenCMS.org',
    'logo' => 'core/modules/installer/images/silkscreen.png',
  );
  $servers['backdrop'] = array(
    'url' => 'https://projects.backdropcms.org',
    'name' => 'Backdrop',
    'site_name' => 'BackdropCMS.org',
    'logo' => 'core/modules/installer/images/backdrop.png',
  );
  $config->set('installer_server', $servers);
  $config->save();
}