function system_filetransfer_info
Same name in other branches
- 9 core/modules/system/system.module \system_filetransfer_info()
- 8.9.x core/modules/system/system.module \system_filetransfer_info()
- 10 core/modules/system/system.module \system_filetransfer_info()
Implements hook_filetransfer_info().
File
-
modules/
system/ system.module, line 1892
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' => 'FileTransferFTP',
'file' => 'ftp.inc',
'file path' => 'includes/filetransfer',
'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' => 'FileTransferSSH',
'file' => 'ssh.inc',
'file path' => 'includes/filetransfer',
'weight' => 20,
);
}
return $backends;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.