function _authorize_filetransfer_connection_settings
_authorize_filetransfer_connection_settings($backend)
Generates the Form API array for a given connection backend's settings.
Parameters
$backend: The name of the backend (e.g. 'ftp', 'ssh', etc).
Return value
Form API array of connection settings for the given backend.
See also
hook_filetransfer_backends()
File
- includes/authorize.inc, line 146
- Helper functions and form handlers used for the authorize.php script.
Code
function _authorize_filetransfer_connection_settings($backend) { $defaults = variable_get('authorize_filetransfer_connection_settings_' . $backend, array()); $form = array(); // Create an instance of the file transfer class to get its settings form. $filetransfer = authorize_get_filetransfer($backend); if ($filetransfer) { $form = $filetransfer->getSettingsForm(); } // Fill in the defaults based on the saved settings, if any. _authorize_filetransfer_connection_settings_set_defaults($form, NULL, $defaults); return $form; }
© 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/includes!authorize.inc/function/_authorize_filetransfer_connection_settings/7.x