function backup_migrate_destination_files::edit_form

cis7 destinations.file.inc backup_migrate_destination_files::edit_form()
cle7 destinations.file.inc backup_migrate_destination_files::edit_form()
elmsmedia7 destinations.file.inc backup_migrate_destination_files::edit_form()
icor7 destinations.file.inc backup_migrate_destination_files::edit_form()
meedjum_blog7 destinations.file.inc backup_migrate_destination_files::edit_form()
mooc7 destinations.file.inc backup_migrate_destination_files::edit_form()

Get the form for the settings for the files destination.

Overrides backup_migrate_destination::edit_form

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.file.inc, line 115
A destination type for saving locally to the server.

Class

backup_migrate_destination_files

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.'),
  );
  $form['settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('Advanced Settings'),
    '#tree' => TRUE,
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  if (function_exists('chmod')) {
    $form['settings']['chmod'] = array(
      '#type' => 'textfield',
      '#title' => t('Change file mode (chmod)'),
      '#size' => 5,
      '#default_value' => $this->settings('chmod'),
      '#description' => t('If you enter a value here, backup files will be chmoded with the mode you specify. Specify the mode in octal form (e.g. 644 or 0644) or leave blank to disable this feature.'),
    );
  }
  if (function_exists('chgrp')) {
    $form['settings']['chgrp'] = array(
      '#type' => 'textfield',
      '#title' => t('Change file group (chgrp)'),
      '#size' => 5,
      '#default_value' => $this->settings('chgrp'),
      '#description' => t('If you enter a value here, backup files will be chgrped to the group you specify. Leave blank to disable this feature.'),
    );
  }
  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.