hook_filetransfer_info_alter(&$filetransfer_info)
Alter the FileTransfer class registry.
array $filetransfer_info: Reference to a nested array containing information about the FileTransfer class registry.
function hook_filetransfer_info_alter(&$filetransfer_info) {
// Remove the FTP option entirely.
unset($filetransfer_info['ftp']);
// Make sure the SSH option is listed first.
$filetransfer_info['ssh']['weight'] = -10;
}
© 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!lib!Drupal!Core!File!file.api.php/function/hook_filetransfer_info_alter/8.1.x