system_filetransfer_backends()Implements hook_filetransfer_backends().
modules/system/system.module, line 1691
<?php
function system_filetransfer_backends() {
$backends = array();
// This is the default, will be available on most systems.
if (function_exists('ftp_connect') || ini_get('allow_url_fopen')) {
$backends['ftp'] = array(
'title' => t('FTP'),
'class' => 'FileTransferFTP',
'settings_form' => 'system_filetransfer_backend_form_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' => 'FileTransferSSH',
'settings_form' => 'system_filetransfer_backend_form_ssh',
'weight' => 20,
);
}
return $backends;
}
?>