You are here

function backup_migrate_destination_s3_compatible::numeric_validate in Backup and Migrate S3 7

File

./destinations.s3.inc, line 327
Functions to handle the dropbox backup destination.

Class

backup_migrate_destination_s3_compatible
A destination for sending database backups to a Dropbox account.

Code

function numeric_validate($element, &$form_state) {

  // Strip slashes from the beginning and end of $widget['file_directory'].
  if ($element['#value'] && !is_numeric($element['#value'])) {
    form_error($element, t('@fieldname must be numeric.', array(
      '@fieldname' => $element['#title'],
    )));
  }
}