You are here

function backup_migrate_destination_files::edit_form_submit in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.file.inc \backup_migrate_destination_files::edit_form_submit()
  2. 8.3 includes/destinations.file.inc \backup_migrate_destination_files::edit_form_submit()
  3. 6.2 includes/destinations.file.inc \backup_migrate_destination_files::edit_form_submit()
  4. 7.3 includes/destinations.file.inc \backup_migrate_destination_files::edit_form_submit()
  5. 7.2 includes/destinations.file.inc \backup_migrate_destination_files::edit_form_submit()

Submit the form for the settings for the files destination.

Overrides backup_migrate_item::edit_form_submit

File

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

Class

backup_migrate_destination_files
A destination type for saving locally to the server.

Code

function edit_form_submit($form, &$form_state) {

  // Add a 0 to the start of a 3 digit file mode to make it proper PHP encoded octal.
  if (strlen($form_state['values']['settings']['chmod']) == 3) {
    $form_state['values']['settings']['chmod'] = '0' . $form_state['values']['settings']['chmod'];
  }
  parent::edit_form_submit($form, $form_state);
}