function backup_migrate_destination_remote::edit_form in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_destination_remote::edit_form()
- 8.3 includes/destinations.inc \backup_migrate_destination_remote::edit_form()
- 6.2 includes/destinations.inc \backup_migrate_destination_remote::edit_form()
- 7.3 includes/destinations.inc \backup_migrate_destination_remote::edit_form()
- 7.2 includes/destinations.inc \backup_migrate_destination_remote::edit_form()
Destination configuration callback.
Overrides backup_migrate_destination::edit_form
2 calls to backup_migrate_destination_remote::edit_form()
- backup_migrate_destination_ftp::edit_form in includes/
destinations.ftp.inc - Get the form for the settings for this filter.
- backup_migrate_destination_s3::edit_form in includes/
destinations.s3.inc - Get the form for the settings for this filter.
2 methods override backup_migrate_destination_remote::edit_form()
- backup_migrate_destination_ftp::edit_form in includes/
destinations.ftp.inc - Get the form for the settings for this filter.
- backup_migrate_destination_s3::edit_form in includes/
destinations.s3.inc - Get the form for the settings for this filter.
File
- includes/
destinations.inc, line 1078
Class
- backup_migrate_destination_remote
- A base class for creating destinations.
Code
function edit_form() {
$form = parent::edit_form();
$form['scheme'] = array(
"#type" => "textfield",
"#title" => t("Scheme"),
"#default_value" => @$this->dest_url['scheme'] ? $this->dest_url['scheme'] : '',
"#required" => TRUE,
"#weight" => 0,
);
$form['host'] = array(
"#type" => "textfield",
"#title" => t("Host"),
"#default_value" => @$this->dest_url['host'] ? $this->dest_url['host'] : 'localhost',
"#required" => TRUE,
"#weight" => 10,
);
$form['path'] = array(
"#type" => "textfield",
"#title" => t("Path"),
"#default_value" => @$this->dest_url['path'],
"#required" => TRUE,
"#weight" => 20,
);
$form['user'] = array(
"#type" => "textfield",
"#title" => t("Username"),
"#default_value" => @$this->dest_url['user'],
"#required" => TRUE,
"#weight" => 30,
);
$form['pass'] = array(
"#type" => "password",
"#title" => t("Password"),
"#default_value" => @$this->dest_url['pass'],
'#description' => '',
"#weight" => 40,
);
if (@$this->dest_url['pass']) {
$form['old_password'] = array(
"#type" => "value",
"#value" => @$this->dest_url['pass'],
);
$form['pass']["#description"] .= t(' You do not need to enter a password unless you wish to change the currently saved password.');
}
return $form;
}