You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drupal_set_message(t('WARNING: You are not using an encrypted connection, so your password will be sent in plain text. <a href="@https-link">Learn more</a>.', array('@https-link' => 'http://drupal.org/https-information')), 'error');
@@ -87,8 +86,7 @@ function authorize_filetransfer_form($form_state) {
Copy file name to clipboardExpand all lines: includes/filetransfer/filetransfer.inc
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -313,6 +313,42 @@ abstract class FileTransfer {
313
313
$this->chroot = $this->findChroot();
314
314
$this->jail = $this->fixRemotePath($this->jail);
315
315
}
316
+
317
+
/**
318
+
* Returns a form to collect connection settings credentials.
319
+
*
320
+
* Implementing classes can either extend this form with fields collecting the
321
+
* specific information they need, or override it entirely.
322
+
*/
323
+
publicfunctiongetSettingsForm() {
324
+
$form['username'] = array(
325
+
'#type' => 'textfield',
326
+
'#title' => t('Username'),
327
+
);
328
+
$form['password'] = array(
329
+
'#type' => 'password',
330
+
'#title' => t('Password'),
331
+
'#description' => t('Your password is not saved in the database and is only used to establish a connection.'),
332
+
);
333
+
$form['advanced'] = array(
334
+
'#type' => 'fieldset',
335
+
'#title' => t('Advanced settings'),
336
+
'#collapsible' => TRUE,
337
+
'#collapsed' => TRUE,
338
+
);
339
+
$form['advanced']['hostname'] = array(
340
+
'#type' => 'textfield',
341
+
'#title' => t('Host'),
342
+
'#default_value' => 'localhost',
343
+
'#description' => t('The connection will be created between your web server and the machine hosting the web server files. In the vast majority of cases, this will be the same machine, and "localhost" is correct.'),
0 commit comments