function backup_migrate_destination_files::edit_form_validate

cis7 destinations.file.inc backup_migrate_destination_files::edit_form_validate($form, &$form_state)
cle7 destinations.file.inc backup_migrate_destination_files::edit_form_validate($form, &$form_state)
elmsmedia7 destinations.file.inc backup_migrate_destination_files::edit_form_validate($form, &$form_state)
icor7 destinations.file.inc backup_migrate_destination_files::edit_form_validate($form, &$form_state)
meedjum_blog7 destinations.file.inc backup_migrate_destination_files::edit_form_validate($form, &$form_state)
mooc7 destinations.file.inc backup_migrate_destination_files::edit_form_validate($form, &$form_state)

Validate the form for the settings for the files destination.

Overrides backup_migrate_item::edit_form_validate

File

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

Class

backup_migrate_destination_files

Code

function edit_form_validate($form, &$form_state) {
  $values = $form_state['values'];
  if (isset($values['settings']['chmod']) && !empty($values['settings']['chmod']) && !preg_match('/0?[0-7]{3}/', $values['settings']['chmod'])) {
    form_set_error('chmod', t('You must enter a valid chmod octal value (e.g. 644 or 0644) in the change mode field, or leave it blank.'));
  }
  parent::edit_form_validate($form, $form_state);
}
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.