You are here

function backup_migrate_files_destination_filesource::edit_form in Backup and Migrate Files 7

Get the form for the settings for the files destination.

File

includes/destinations.filesource.inc, line 37
A destination type for saving locally to the server.

Class

backup_migrate_files_destination_filesource
A destination type for saving locally to the server.

Code

function edit_form() {
  $form = parent::edit_form();
  $form['location'] = array(
    "#type" => "textfield",
    "#title" => t("Directory path"),
    "#default_value" => $this
      ->get_location(),
    "#required" => TRUE,
    "#description" => t('Enter the path to the directory to save the backups to. Use a relative path to pick a path relative to your Drupal root directory. The web server must be able to write to this path.'),
  );
  return $form;
}