function drupal_get_filetransfer_info

Assembles the Drupal FileTransfer registry.

Return value

The Drupal FileTransfer class registry.

See also

Drupal\Core\FileTransfer\FileTransfer

hook_filetransfer_info()

hook_filetransfer_info_alter()

2 calls to drupal_get_filetransfer_info()
system_authorized_init in drupal/core/modules/system/system.module
Setup a given callback to run via authorize.php with elevated privileges.
_update_manager_check_backends in drupal/core/modules/update/update.manager.inc
Checks for file transfer backends and prepares a form fragment about them.

File

drupal/core/includes/common.inc, line 6883
Common functions that many Drupal modules will need to reference.

Code

function drupal_get_filetransfer_info() {
  $info =& drupal_static(__FUNCTION__);
  if (!isset($info)) {
    $info = module_invoke_all('filetransfer_info');
    drupal_alter('filetransfer_info', $info);
    uasort($info, 'drupal_sort_weight');
  }
  return $info;
}