You are here

function backup_migrate_destination_ftp::edit_form in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::edit_form()
  2. 6.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::edit_form()
  3. 6.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::edit_form()
  4. 7.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::edit_form()
  5. 7.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::edit_form()

Get the form for the settings for this filter.

Overrides backup_migrate_destination_remote::edit_form

File

includes/destinations.ftp.inc, line 63
Functions to handle the FTP backup destination.

Class

backup_migrate_destination_ftp
A destination for sending database backups to an FTP server.

Code

function edit_form() {
  $form = parent::edit_form();
  $form['scheme']['#type'] = 'value';
  $form['scheme']['#value'] = 'ftp';
  $form['port'] = array(
    "#type" => "textfield",
    "#title" => t("Port"),
    "#default_value" => @$this->dest_url['port'] ? $this->dest_url['port'] : '21',
    "#weight" => 15,
  );
  $form['pasv'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use PASV transfers'),
    '#default_value' => $this
      ->get_pasv(),
    '#weight' => 50,
  );
  return $form;
}