You are here

public function backup_migrate_destination_filesource::backup_settings_form in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/sources.filesource.inc \backup_migrate_destination_filesource::backup_settings_form()
  2. 6.3 includes/sources.filesource.inc \backup_migrate_destination_filesource::backup_settings_form()

Get the form for the backup settings for this destination.

Overrides backup_migrate_location::backup_settings_form

File

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

Class

backup_migrate_destination_filesource
A destination type for saving locally to the server.

Code

public function backup_settings_form($settings) {
  $form['exclude_filepaths'] = array(
    "#type" => "textarea",
    "#multiple" => TRUE,
    "#title" => t("Exclude the following files or directories"),
    "#default_value" => isset($settings['exclude_filepaths']) ? $settings['exclude_filepaths'] : '',
    "#description" => t("A list of files or directories to be excluded from backups. Add one path per line relative to the directory being backed up."),
  );
  return $form;
}