function system_filetransfer_info
system_filetransfer_info()
Implements hook_filetransfer_info().
File
- core/modules/system/system.module, line 517
- Configuration system that lets administrators modify the workings of the site.
Code
function system_filetransfer_info() { $backends = array(); // This is the default, will be available on most systems. if (function_exists('ftp_connect')) { $backends['ftp'] = array( 'title' => t('FTP'), 'class' => 'Drupal\Core\FileTransfer\FTP', 'weight' => 0, ); } // SSH2 lib connection is only available if the proper PHP extension is // installed. if (function_exists('ssh2_connect')) { $backends['ssh'] = array( 'title' => t('SSH'), 'class' => 'Drupal\Core\FileTransfer\SSH', 'weight' => 20, ); } return $backends; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!system!system.module/function/system_filetransfer_info/8.1.x